User Tools

Site Tools


visual3d:documentation:pipeline:expressions:examples

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
visual3d:documentation:pipeline:expressions:examples [2024/11/05 13:08] – Updated example title for consistency. wikisysopvisual3d:documentation:pipeline:expressions:examples [2025/07/09 14:14] (current) sgranger
Line 265: Line 265:
 </code> </code>
  
 +==== Compute the maximum value of the speed of the COG ====
 +
 +Compute the maximum value of the speed of the Center of Mass of the model between two events
 +
 +<code>
 +Evaluate_Expression
 +/EXPRESSION=Metric_Maximum(Length(LINK_MODEL_BASED::ORIGINAL::CogVelocity), EVENT_LABEL::ORIGINAL::START,EVENT_LABEL::ORIGINAL::END)
 +/SIGNAL_TYPES=
 +! /SIGNAL_FOLDER=
 +/SIGNAL_NAMES=
 +/SIGNAL_COMPONENTS=X
 + /RESULT_TYPES=METRIC
 + /RESULT_FOLDERS=FROM_SCOTT
 + /RESULT_NAME=CogVelocityMax
 +! /APPLY_AS_SUFFIX_TO_SIGNAL_NAME=FALSE
 +;
 +</code>
 ==== Create a 2x2 matrix ====  ==== Create a 2x2 matrix ==== 
  
Line 721: Line 738:
 Given a group of unilaterally affected subjects. The Left side calculations could be the "affected” side and the right side could be the "normal” side, but for other subjects the opposite would be true. The data should be collected as "affected" or "normal" rather than "left" or "right" export them as a group. Given a group of unilaterally affected subjects. The Left side calculations could be the "affected” side and the right side could be the "normal” side, but for other subjects the opposite would be true. The data should be collected as "affected" or "normal" rather than "left" or "right" export them as a group.
  
-In the commands below, wo parameters specify the letter of primary side (SIDE_LETTER) and the letter of opposite side (OPP_SIDE_LETTER). The script then uses these parameters to compute the Arm angle relative to the trunk for the two sides. The final command uses **Evaluate_Expression** to check to see which is the primary side and compute the arms angle of the primary side using Evaluate Expression's string comparison conditional statement. If ("&::SIDE_LETTER&" = "R") is TRUE, then the value will be 1, if not the value will be zero. If ("&::SIDE_LETTER&" = "L") is TRUE, then the value will be 1, if not the value will be zero. In the example commands below, the primary side will be the "right side" and therefore the primary side will be the right arm angle. You can change this by defining "L" as the SIDE_LETTER and "R" as the OPP_SIDE_LETTER in the first two commands.+In the commands below, two parameters specify the letter of primary side (SIDE_LETTER) and the letter of opposite side (OPP_SIDE_LETTER). The script then uses these parameters to compute the Arm angle relative to the trunk for the two sides. The final command uses **Evaluate_Expression** to check to see which is the primary side and compute the arms angle of the primary side using Evaluate Expression's string comparison conditional statement. If ("&::SIDE_LETTER&" = "R") is TRUE, then the value will be 1, if not the value will be zero. If ("&::SIDE_LETTER&" = "L") is TRUE, then the value will be 1, if not the value will be zero. In the example commands below, the primary side will be the "right side" and therefore the primary side will be the right arm angle. You can change this by defining "L" as the SIDE_LETTER and "R" as the OPP_SIDE_LETTER in the first two commands.
  
 <code> <code>
visual3d/documentation/pipeline/expressions/examples.1730812091.txt.gz · Last modified: 2024/11/05 13:08 by wikisysop