User Tools

Site Tools


visual3d:documentation:pipeline:metric_commands:metric_maximum

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:metric_commands:metric_maximum [2024/11/26 19:46] wikisysopvisual3d:documentation:pipeline:metric_commands:metric_maximum [2025/09/24 17:34] (current) – [Examples] wikisysop
Line 1: Line 1:
 ====== Metric Maximum ====== ====== Metric Maximum ======
  
-This command computes the Maximum Value of a Signal and stores the value as a metric. +=====Overview==== 
-===== Command Syntax ===== +The **Metric Maximum** command computes the Maximum Value of a Signal and stores the value as a metric. This can be useful during event definition and when looking at movements like jumps where values like maximum height are relevant. The command can be found in the **Pipeline Workshop** under **Metric**. 
-The syntax for the function is as follows:+ 
 +=====Pipeline Command===== 
 +The command syntax, found in the Pipeline Workshop is as so: 
 <code> <code>
-Metric_Maximum       +Metric_Maximum 
-/RESULT_METRIC_NAME=_MEAN +/RESULT_METRIC_FOLDER=PROCESSED 
-/APPLY_AS_SUFFIX_TO_SIGNAL_NAME=TRUE +/RESULT_METRIC_NAME
-/RESULT_METRIC_FOLDER=PROCESSED  +/APPLY_AS_SUFFIX_TO_SIGNAL_NAME=FALSE 
-/SIGNAL_TYPES=DERIVED    +/SIGNAL_TYPES= 
-/SIGNAL_NAMES=HANDSPEED +/SIGNAL_FOLDER=ORIGINAL 
-/SIGNAL_FOLDER=PROCESSED     +/SIGNAL_NAMES
-/SIGNAL_COMPONENTS=ALL_COMPONENTS +/COMPONENT_SEQUENCE
-/EVENT_SEQUENCE=FRAME1 + GO +/EVENT_SEQUENCE= 
-/EXCLUDE_EVENTS=SPEED_CHANGE +/EXCLUDE_EVENTS= 
-/GENERATE_MEAN_AND_STDDEV=TRUE +/GENERATE_MEAN_AND_STDDEV=TRUE 
-/APPEND_TO_EXISTING_VALUES=FALSE+! /GENERATE_MEAN_AND_STDDEV_ACROSS_SUBJECTS=FALSE 
 +/APPEND_TO_EXISTING_VALUES=FALSE
 ! /CREATE_GLOBAL_MAXIMUM=FALSE ! /CREATE_GLOBAL_MAXIMUM=FALSE
 +! /CREATE_TRIAL_MAXIMUM=FALSE
 ; ;
 </code> </code>
  
-===== Parameters===== +=====Command Parameters=====
-The Parameters for the function is as follows:+
  
-|**Metric_Maximum**                                                                                                                                                                                                                                                                                                                                                  || +The Parameters for the function are as follows: 
-|**/RESULT_METRIC_FOLDER=**                                                                             |Specify folder for the metric                                                                                                                                                                                                                                 |+                                                                                                                                                                                                                                                         
-|**/RESULT_METRIC_NAME=**                                                                               |Name of the resulting metric                                                                                                                                                                                                                                  || +|**RESULT_METRIC_FOLDER**                                                                               |Name of the folder holding results                                                                                                                                                                                                                             
-|**/APPLY_AS_SUFFIX_TO_SIGNAL_NAME=**                                                                   |Specify the metric name to be the ORIGINAL signal plus a SUFFIX                                                                                                                                                                                               || +|**RESULT_METRIC_NAME**                                                                               |Name of the resulting metric                                                                                                                                                                                                                                  
-|**/SIGNAL_TYPES=**                                                                                     |Specify the signal type                                                                                                                                                                                                                                       || +|**APPLY_AS_SUFFIX_TO_SIGNAL_NAME**                                                                   |Specify the metric name to be the ORIGINAL signal plus a SUFFIX                                                                                                                                                                                               
-|**/SIGNAL_FOLDER=**                                                                                    |Specify the signal folder                                                                                                                                                                                                                                     || +|**SIGNAL_TYPES**                                                                                     |Specify the signal type                                                                                                                                                                                                                                       
-|**/SIGNAL_NAMES=**                                                                                     |Specify the Signal to be used                                                                                                                                                                                                                                 || +|**SIGNAL_FOLDER**                                                                                    |Specify the signal folder                                                                                                                                                                                                                                     
-|**/SIGNAL_COMPONENTS=**                                                                                |Specify the Signal components to be used (e.g. X, Y, Z or 0, 1, 2 etc)                                                                                                                                                                                        || +|**SIGNAL_NAMES**                                                                                     |Specify the Signal to be used                                                                                                                                                                                                                                 
-|**/[[Visual3D:Documentation:Pipeline:General_Information:COMPONENT_SEQUENCE|COMPONENT_SEQUENCE]]=**    |Specify the Signal components to be used (e.g. X + Y + Z or 0 + 1 + 2 etc)                                                                                                                                                                                    || +|**SIGNAL_COMPONENTS**                                                                                |Specify the Signal components to be used (e.g. X, Y, Z or 0, 1, 2 etc)                                                                                                                                                                                        
-|**/[[Visual3D:Documentation:C3D_Signal_Types:EVENT_LABEL_Data_Type#Event_Sequence|EVENT_SEQUENCE]]=**  |Specify the sequence of Events. Any number of Events can be entered (separated by +). This specific sequence of events must be true for a metric to be computed. The metric is computed from the first event in the sequence to the last event in the sequence|+|**[[Visual3D:Documentation:Pipeline:General_Information:COMPONENT_SEQUENCE|COMPONENT_SEQUENCE]]**    |Specify the Signal components to be used (e.g. X + Y + Z or 0 + 1 + 2 etc)                                                                                                                                                                                    
-|**/[[Visual3D:Documentation:C3D_Signal_Types:EVENT_LABEL_Data_Type#Exclude_Events|EXCLUDE_EVENTS]]=**  |If this event occurs before the first and last event, do not computed a metric                                                                                                                                                                                |+|**[[Visual3D:Documentation:C3D_Signal_Types:EVENT_LABEL_Data_Type#Event_Sequence|EVENT_SEQUENCE]]**  |Specify the sequence of Events. Any number of Events can be entered (separated by +). This specific sequence of events must be true for a metric to be computed. The metric is computed from the first event in the sequence to the last event in the sequence| 
-|**/[[Visual3D:Documentation:Pipeline:Metric_Commands:SEQUENCE_PERCENT_START|SEQUENCE_PERCENT_START]]=**|Within the event sequence specify the beginning of the range as a percent                                                                                                                                                                                     || +|**[[Visual3D:Documentation:C3D_Signal_Types:EVENT_LABEL_Data_Type#Exclude_Events|EXCLUDE_EVENTS]]**  |If this event occurs before the first and last event, do not computed a metric|                                                                                                                                                                             
-|**/[[Visual3D:Documentation:Pipeline:Metric_Commands:SEQUENCE_PERCENT_START|SEQUENCE_PERCENT_END]]=**  |Within the event sequence specify the end of the range as a percent                                                                                                                                                                                           || +|**[[Visual3D:Documentation:Pipeline:Metric_Commands:SEQUENCE_PERCENT_START|SEQUENCE_PERCENT_START]]**|Within the event sequence specify the beginning of the range as a percent                                                                                                                                                                                     
-|**/GENERATE_MEAN_AND_STDDEV=**                                                                         |Generate the mean and standard deviation of this metric across ranges and files                                                                                                                                                                               |+|**[[Visual3D:Documentation:Pipeline:Metric_Commands:SEQUENCE_PERCENT_START|SEQUENCE_PERCENT_END]]**|Within the event sequence specify the end of the range as a percent                                                                                                                                                                                           
-|**/APPEND_TO_EXISTING_VALUES==**                                                                       |Do not Add these metric values to an existing metric                                                                                                                                                                                                          |+|**GENERATE_MEAN_AND_STDDEV**|Generate the mean and standard deviation of this metric across ranges and files|                                                                                                                                                                              
-|**! /CREATE_GLOBAL_MAXIMUM=**                                                                          |Create a metric in the GLOBAL Workspace containing the maximum of the maximums                                                                                                                                                                                ||+|**APPEND_TO_EXISTING_VALUES**|Do not Add these metric values to an existing metric|                                                                                                                                                                                                         
 +|**CREATE_GLOBAL_MAXIMUM**|Create a metric in the GLOBAL Workspace containing the maximum of the maximums|                                                                                                                                                                                
 + 
 + 
 +====Dialog==== 
 + 
 +The command can be edited in a text editor or in a dialog form. To edit in the dialog pop up form either click on the Edit button in the pipeline workshop or double-click on the pipeline command. The dialog is shown below.
  
 {{:Metric_Maximum.jpg}} {{:Metric_Maximum.jpg}}
 +
 +The dialog box allows you to assign values to the command parameters outlined above.
  
 ==== Examples ==== ==== Examples ====
Line 64: Line 76:
 </code> </code>
  
 +===Complex Example: Comparing and Graphing Signal Maximums===
 +
 +Using the **Metric Maximum** command we can compute the maximum value of a signal during a specific sequence of events for a motion trial. Here we will compute and compare the maximum GRF for the left and right sides of a subject's gait trial and use this data to evaluate the consistency of the subject's strides. This pipeline will compute the maximum ground reaction force during each stride for the left and right sides, as well as the mean GRF and std deviation for each side. 
 +
 +First we will define the key events using **Automatic Gait Events**:
 +
 +<code>
 +Automatic_Gait_Events
 +! /FRAME_WINDOW=8
 +! /USE_TPR=TRUE
 +! /TPR_EVENT_INSTANCE=1
 +;
 +</code>
 +
 +Next we will use **Metric Maximum** to compute key GRF metrics:
 +
 +<code>
 +Metric_Maximum
 +! /RESULT_METRIC_FOLDER=PROCESSED
 +/RESULT_METRIC_NAME=R_GRF_MAX
 +! /APPLY_AS_SUFFIX_TO_SIGNAL_NAME=FALSE
 +/SIGNAL_TYPES=LINK_MODEL_BASED
 +! /SIGNAL_FOLDER=ORIGINAL
 +/SIGNAL_NAMES=RGRF
 +/COMPONENT_SEQUENCE=ALL
 +/EVENT_SEQUENCE=RHS+RTO
 +/EXCLUDE_EVENTS=
 +/SEQUENCE_PERCENT_START=
 +/SEQUENCE_PERCENT_END=
 +! /GENERATE_MEAN_AND_STDDEV=TRUE
 +! /GENERATE_MEAN_AND_STDDEV_ACROSS_SUBJECTS=FALSE
 +! /APPEND_TO_EXISTING_VALUES=FALSE
 +! /CREATE_GLOBAL_MAXIMUM=FALSE
 +! /CREATE_TRIAL_MAXIMUM=FALSE
 +;
 +</code>
 +
 +<code>
 +Metric_Maximum
 +! /RESULT_METRIC_FOLDER=PROCESSED
 +/RESULT_METRIC_NAME=L_GRF_MAX
 +! /APPLY_AS_SUFFIX_TO_SIGNAL_NAME=FALSE
 +/SIGNAL_TYPES=LINK_MODEL_BASED
 +! /SIGNAL_FOLDER=ORIGINAL
 +/SIGNAL_NAMES=LGRF
 +/COMPONENT_SEQUENCE=ALL
 +/EVENT_SEQUENCE=LHS+LTO
 +/EXCLUDE_EVENTS=
 +/SEQUENCE_PERCENT_START=
 +/SEQUENCE_PERCENT_END=
 +! /GENERATE_MEAN_AND_STDDEV=TRUE
 +! /GENERATE_MEAN_AND_STDDEV_ACROSS_SUBJECTS=FALSE
 +! /APPEND_TO_EXISTING_VALUES=FALSE
 +! /CREATE_GLOBAL_MAXIMUM=FALSE
 +! /CREATE_TRIAL_MAXIMUM=FALSE
 +;
 +</code>
 +
 +The computed GRF_max data can now be found within the **METRIC: PROCESSED** folder. Use this data to compare the mean max GRF for the left and right sides as well as the max GRF for each side.
 +
 +Left side:
 +
 +{{:visual3d:documentation:pipeline:metric_commands:l_grf.png?400|}}{{:visual3d:documentation:pipeline:metric_commands:l_grf_mean.png?400|}}
  
 +Right side:
  
 +{{:visual3d:documentation:pipeline:metric_commands:r_grf.png?400|}}{{:visual3d:documentation:pipeline:metric_commands:r_grf_mean.png?400|}}
visual3d/documentation/pipeline/metric_commands/metric_maximum.1732650385.txt.gz · Last modified: 2024/11/26 19:46 by wikisysop