User Tools

Site Tools


visual3d:documentation:pipeline:metric_commands:metric_time_of_minimum_from_event

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_time_of_minimum_from_event [2025/09/19 15:07] – [Command Parameters] wikisysopvisual3d:documentation:pipeline:metric_commands:metric_time_of_minimum_from_event [2025/09/25 14:36] (current) – [Examples] wikisysop
Line 72: Line 72:
 In Version 5 a series of metric commands were introduced to identify the time of a threshold crossing or maximum at the analog rate. In Version 5 a series of metric commands were introduced to identify the time of a threshold crossing or maximum at the analog rate.
  
-====Examples====+====Example: Timing of knee extension==== 
 +Here we will use **Metric Time of Minimum from Event** to find the time it takes a subject to reach a local minimum knee extension value (most knee bend) after each toe off.
  
 +Pipeline Command:
 +<code>
 +Metric_Time_Of_Minimum_From_Event
 + /RESULT_METRIC_TIME=R_Knee_ext_time
 + /RESULT_METRIC_VALUE=R_knee_ext_val
 + /RESULT_FOLDER=PROCESSED
 + /RESULT_COMPONENTS=ALL
 +/SIGNAL_TYPES=LINK_MODEL_BASED
 + /SIGNAL_FOLDER=ORIGINAL
 + /SIGNAL_NAMES=RKneeAngle
 + /SIGNAL_COMPONENTS=X
 +! /FRAME_OFFSET=0
 +! /TIME_OFFSET=
 + /EVENT_SEQUENCE=RTO+RHS
 +! /EXCLUDE_EVENTS=
 +! /EVENT_SEQUENCE_INSTANCE=0
 +! /EVENT_SUBSEQUENCE=
 +! /SUBSEQUENCE_EXCLUDE_EVENTS=
 +! /EVENT_SUBSEQUENCE_INSTANCE=0
 +! /EVENT_INSTANCE=0
 +! /FRAME_WINDOW=8
 +! /THRESHOLD=
 +;
 +</code>
  
 +====Complex Example: Comparing Time to Minimum Ankle Moment and Time to Minimum Ankle Power====
 +Here we will build on the example above and use the **Metric Time of Minimum From Event** command along with the **Automatic Gait Signals** command to compare the time it takes to reach minimum ankle moment after a heel strike with the time it takes the reach the minimum ankle power on the same side and identify a relationship.
 +
 +Start by defining key gait events for the trial using **Automatic Gait Events**:
 +
 +<code>
 +Automatic_Gait_Events
 +! /FRAME_WINDOW=8
 +! /USE_TPR=TRUE
 +! /TPR_EVENT_INSTANCE=1
 +;
 +</code>
 +
 +Next we will compute the value and time to minimum value after heel strike of the ankle power and ankle moment for the right leg:
 +
 +<code>
 +Metric_Time_Of_Minimum_From_Event
 + /RESULT_METRIC_TIME=R_Ankle_Power_time
 + /RESULT_METRIC_VALUE=R_Ankle_Power_val
 + /RESULT_FOLDER=PROCESSED
 + /RESULT_COMPONENTS=X
 +/SIGNAL_TYPES=LINK_MODEL_BASED
 + /SIGNAL_FOLDER=ORIGINAL
 + /SIGNAL_NAMES=RAnklePower
 + /SIGNAL_COMPONENTS=X
 +! /FRAME_OFFSET=0
 +! /TIME_OFFSET=
 + /EVENT_SEQUENCE=RHS+RTO
 +! /EXCLUDE_EVENTS=
 +! /EVENT_SEQUENCE_INSTANCE=0
 +! /EVENT_SUBSEQUENCE=
 +! /SUBSEQUENCE_EXCLUDE_EVENTS=
 +! /EVENT_SUBSEQUENCE_INSTANCE=0
 +! /EVENT_INSTANCE=0
 +! /FRAME_WINDOW=8
 +! /THRESHOLD=
 +;
 +</code>
 +
 +<code>
 +Metric_Time_Of_Minimum_From_Event
 + /RESULT_METRIC_TIME=R_GRF_time
 + /RESULT_METRIC_VALUE=R_GRF_val
 + /RESULT_FOLDER=PROCESSED
 + /RESULT_COMPONENTS=X
 +/SIGNAL_TYPES=LINK_MODEL_BASED
 + /SIGNAL_FOLDER=ORIGINAL
 + /SIGNAL_NAMES=RGRF
 + /SIGNAL_COMPONENTS=X
 +! /FRAME_OFFSET=0
 +! /TIME_OFFSET=
 + /EVENT_SEQUENCE=RHS+RTO
 +! /EXCLUDE_EVENTS=
 +! /EVENT_SEQUENCE_INSTANCE=0
 +! /EVENT_SUBSEQUENCE=
 +! /SUBSEQUENCE_EXCLUDE_EVENTS=
 +! /EVENT_SUBSEQUENCE_INSTANCE=0
 +! /EVENT_INSTANCE=0
 +! /FRAME_WINDOW=8
 +! /THRESHOLD=
 +;
 +</code>
 +
 +Four new folders within **PROCESSED** in the **METRIC** folder tell us how long it takes to reach the minimum right ankle power and right GRF values as well as the time it takes to reach those values. 
 +
 +{{:visual3d:documentation:pipeline:metric_commands:rankle_val_2.png?400|}}{{:visual3d:documentation:pipeline:metric_commands:rankle_time_2.png?400|}}
 +
 +{{:visual3d:documentation:pipeline:metric_commands:moment_time.png?400|}}{{:visual3d:documentation:pipeline:metric_commands:moment_value.png?400|}}
visual3d/documentation/pipeline/metric_commands/metric_time_of_minimum_from_event.txt · Last modified: 2025/09/25 14:36 by wikisysop