Mathematical Operators: Difference between revisions
Jump to navigation
Jump to search
Line 66: | Line 66: | ||
:The output signal will be 1 when RFT1::Z is less than LFT1::Z and 0 otherwise | :The output signal will be 1 when RFT1::Z is less than LFT1::Z and 0 otherwise | ||
==Greater_Than''== | |||
'''>''' Boolean Operator ''greater than'' | |||
Example: | |||
:Given two signals | |||
::TARGET::ORIGINAL::RFT1 | |||
::TARGET::ORIGINAL::LFT1 | |||
:Use the Boolean operator > to identify when the Y component of RFT1 is greater than the Y component of LFT1 | |||
::'''Evaluate_Expression''' | |||
::/EXPRESSION= TARGET::ORIGINAL::RFT1::Y > TARGET::ORIGINAL::LFT1::Y | |||
::/RESULT_NAME=RFT1_GREATER | |||
::/RESULT_TYPE=DERIVED | |||
::/RESULT_FOLDER=PROCESSED | |||
::''';''' | |||
:The output signal will be 1 when RFT1::Y is greater than LFT1::Y and 0 otherwise |
Revision as of 17:48, 31 December 2023
Using the Adjective NOT
NOT can be used with the logical AND and logical OR
Example: Given a workspace containing 3 trials (*trial1.c3d, *trial2.c3d, and *trial3.c3d)
All trials are assigned a TAG labeled WALK
- trial1.c3d is also assigned a TAG labeled BAD
- Select_Active_File
- /FILE_NAME=WALK
- /QUERY=BAD
- ;
This command results in *trial1.c3d being active
- Select_Active_File
- /FILE_NAME=WALK
- /QUERY=NOT(BAD)
- ;
This command results in *trial2.c3d and *trial3.c3d being active.
equals
- = or == - Boolean Operator equals
Example: Comparing a model metric with a string
- Consider a model metric that is defined as a string.
- Set_Model_Metric
- ! /CALIBRATION_FILE=
- /METRIC_NAME=TEST
- /METRIC_VALUE="TTT"
- ;
- Now compare it to the text string "TTT"
- Evaluate_Expression
- /EXPRESSION=MODEL::METRIC::TEST="TTT"
- /RESULT_NAME=SCOTT
- /RESULT_TYPE=METRIC
- ! /RESULT_FOLDER=PROCESSED
- ;
- The text strings should be equal so the resulting signal contains a 1
Less_Than
< Boolean Operator less than
Example:
- Given two signals
- TARGET::ORIGINAL::RFT1
- TARGET::ORIGINAL::LFT1
- Use the Boolean operator < to identify when the Z component of RFT1 is less than the Z component of LFT1
- Evaluate_Expression
- /EXPRESSION= TARGET::ORIGINAL::RFT1::Z < TARGET::ORIGINAL::LFT1::Z
- /RESULT_NAME=RFT1_GREATER
- /RESULT_TYPE=DERIVED
- /RESULT_FOLDER=PROCESSED
- ;
- The output signal will be 1 when RFT1::Z is less than LFT1::Z and 0 otherwise
Greater_Than
> Boolean Operator greater than
Example:
- Given two signals
- TARGET::ORIGINAL::RFT1
- TARGET::ORIGINAL::LFT1
- Use the Boolean operator > to identify when the Y component of RFT1 is greater than the Y component of LFT1
- Evaluate_Expression
- /EXPRESSION= TARGET::ORIGINAL::RFT1::Y > TARGET::ORIGINAL::LFT1::Y
- /RESULT_NAME=RFT1_GREATER
- /RESULT_TYPE=DERIVED
- /RESULT_FOLDER=PROCESSED
- ;
- The output signal will be 1 when RFT1::Y is greater than LFT1::Y and 0 otherwise