User Tools

Site Tools


visual3d:documentation:pipeline:metric_commands:metric_sum

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
visual3d:documentation:pipeline:metric_commands:metric_sum [2025/09/19 13:27] wikisysopvisual3d:documentation:pipeline:metric_commands:metric_sum [2025/10/02 19:47] (current) – [Metric Sum Examples] wikisysop
Line 56: Line 56:
  
 ==== Metric Sum Examples ==== ==== Metric Sum Examples ====
 +In the example below the **Metric Sum** command is used to find the total work done by the right ankle by summing positive and negative work done between events.
 +
 +<code>
 +! Compute positive and negative work for each range of positive power.
 +!**********************************************************************
 + 
 +! Calculate right ankle positive work by time integration of right ankle power from 
 +! PowerPos event to PowerNeg event 
 +Metric_Integrate
 +/Signal_Types=LINK_MODEL_BASED
 +/Signal_Names=Right Ankle Power
 +/Signal_Folder=ORIGINAL
 +/Signal_Components=X
 +/Event_Sequence=PowerPos+PowerNeg
 +/Exclude_Events=
 +/Metric_Name=Right Ankle Positive Work
 +/Apply_As_Suffix_To_Signal_Name=FALSE
 +/Generate_Mean_And_STDDEV=FALSE
 +/Append_To_Existing_Values=FALSE
 +;
 +
 +! Calculate right ankle negative work by time integration of right ankle power
 +! from PowerNeg event to PowerPos event
 +Metric_Integrate
 +/Signal_Types=LINK_MODEL_BASED
 +/Signal_Names=Right Ankle Power
 +/Signal_Folder=ORIGINAL
 +/Signal_Components=X
 +/Event_Sequence=PowerNeg+PowerPos
 +/Exclude_Events=
 +/Metric_Name=Right Ankle Negative Work
 +/Apply_As_Suffix_To_Signal_Name=FALSE
 +/Generate_Mean_And_STDDEV=FALSE
 +/Append_To_Existing_Values=FALSE
 +;
 +
 +!************************************************************************
 +! Compute the total positive and total negative work by summing the work.
 +!************************************************************************
 +
 +!Compute total positive work for the right ankle 
 +Metric_Sum
 +/Signal_Types=METRIC
 +/Signal_Names=Right Ankle Positive Work
 +/Signal_Folder=PROCESSED
 +/Signal_Components=X
 +/Event_Sequence=
 +/Exclude_Events=
 +/Metric_Name=Right Ankle Total Positive Work
 +/Apply_As_Suffix_To_Signal_Name=FALSE
 +/Generate_Mean_And_STDDEV=FALSE
 +/Append_To_Existing_Values=FALSE
 +;
 +
 +!Compute total negative work for the right ankle
 +Metric_Sum
 +/Signal_Types=METRIC
 +/Signal_Names=Right Ankle Negative Work
 +/Signal_Folder=PROCESSED
 +/Signal_Components=X
 +/Event_Sequence=
 +/Exclude_Events=
 +/Metric_Name=Right Ankle Total Negative Work
 +/Apply_As_Suffix_To_Signal_Name=FALSE
 +/Generate_Mean_And_STDDEV=FALSE
 +/Append_To_Existing_Values=FALSE
 +;
 +</code>
 +
 +The result should look similar to this:
 +
 +{{:visual3d:documentation:pipeline:metric_commands:rankle_work.png?600|}}
  
   - An example of the command **Metric_Sum** is found [[Visual3D:Documentation:Pipeline:Expressions:Expressions_Overview#Example:_Value_of_signal_at_an_analog_frame|here]]. This script uses metric_sum command to find a signal value at the analog frame rate. For details go to the page.   - An example of the command **Metric_Sum** is found [[Visual3D:Documentation:Pipeline:Expressions:Expressions_Overview#Example:_Value_of_signal_at_an_analog_frame|here]]. This script uses metric_sum command to find a signal value at the analog frame rate. For details go to the page.
visual3d/documentation/pipeline/metric_commands/metric_sum.1758288425.txt.gz · Last modified: 2025/09/19 13:27 by wikisysop