visual3d:documentation:pipeline:metric_commands:metric_time_between_events
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:pipeline:metric_commands:metric_time_between_events [2024/06/19 12:51] – sgranger | visual3d:documentation:pipeline:metric_commands:metric_time_between_events [2024/07/17 15:46] (current) – created sgranger | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{computes the time between events (or start and end of a sequence of events) as a metric. | + | ====== Metric Time Between Events ====== |
- | **note:** in cases where the maximum event is located at the start event (time between=0), the command metric_time_between_events will not allow zero time. this is because there could be multiple instances for that event and visual 3d would not know which instance | + | Computes |
- | ===== metric_time_between_events | + | **Note:** In cases where the maximum event is located at the start event (time between=0), the command |
- | below are the details for this command: | + | ==== Metric_Time_Between_Events Command Details ==== |
- | |**metric_time_between_events** | + | Below are the details for this command: |
- | |**/result_metric_name==** |the name of the metric signal | + | |
- | |**! /result_metric_folder=processed** |the metric signal folder for the result. | + | |**Metric_Time_Between_Events** |
- | |**/[[visual3d:documentation:c3d_signal_types:event_label_data_type#event_sequence|event_sequence]]=**|a list of events (separated by " | + | |**/RESULT_METRIC_NAME==** |The name of the metric signal |
- | |**/[[visual3d:documentation:c3d_signal_types:event_label_data_type#exclude_events|exclude_events]]=**|this event_sequence | + | |**! /RESULT_METRIC_FOLDER=PROCESSED** |The metric signal folder for the result. |
- | |**! /generate_mean_and_stddev=true** |(true or false)generate | + | |**/[[Visual3D:Documentation:C3D_Signal_Types:EVENT_LABEL_Data_Type#Event_Sequence|Event_Sequence]]=**|A list of events (separated by " |
- | |**! /append | + | |**/[[Visual3D:Documentation:C3D_Signal_Types:EVENT_LABEL_Data_Type#Exclude_Events|Exclude_Events]]=**|This Event_Sequence |
+ | |**! /Generate_Mean_And_StdDev=TRUE** |(True or False)Generate | ||
+ | |**! /Append | ||
\\ | \\ | ||
- | in this example, consider the metric **right_terminal_double_limb_support** which is the time between **lhs** and **rto**. | + | In this example, consider the metric **Right_Terminal_Double_Limb_Support** which is the time between **LHS** and **RTO**. |
< | < | ||
- | metric_time_between_events | + | Metric_Time_Between_Events |
- | /result_metric_name=right_terminal_double_limb_support | + | /RESULT_METRIC_NAME=Right_Terminal_Double_Limb_Support |
- | ! /result_metric_folder=processed | + | ! /RESULT_METRIC_FOLDER=PROCESSED |
- | /event_sequence=lhs+rto | + | /EVENT_SEQUENCE=LHS+RTO |
- | /exclude_events=lto+rhs | + | /EXCLUDE_EVENTS=LTO+RHS |
- | ! /generate_mean_and_stddev=true | + | ! /GENERATE_MEAN_AND_STDDEV=TRUE |
- | ! /append_to_existing_values=false | + | ! /APPEND_TO_EXISTING_VALUES=FALSE |
; | ; | ||
</ | </ | ||
- | below is the dialog that pops up when pipeline selection is edited by double clicking with the left mouse button. | + | Below is the dialog that pops up when pipeline selection is edited by double clicking with the left mouse button. |
- | timebetweeneventsdlg.png | + | {{: |
- | **note: event_sequence** - it is important to note that this command assumes that the events are specified in the correct order chronologically. | + | **Note: Event_Sequence** - It is important to note that this command assumes that the events are specified in the correct order chronologically. |
- | for example, if the event sequence is | + | For example, if the event sequence is |
- | e1+e2 | + | E1+E2 |
- | e1 must occur before | + | E1 must occur before |
- | if it is not always possible to ensure the chronological order, a series of pipeline commands | + | If it is not always possible to ensure the chronological order, a series of Pipeline Commands |
- | ===== example | + | ==== Example |
- | execute | + | Execute |
< | < | ||
- | metric_time_between_events | + | Metric_Time_Between_Events |
- | /result_metric_name=diff | + | /RESULT_METRIC_NAME=DIFF |
- | ! /result_metric_folder=processed | + | ! /RESULT_METRIC_FOLDER=PROCESSED |
- | /event_sequence=e1+e2 | + | /EVENT_SEQUENCE=E1+E2 |
- | /exclude_events= | + | /EXCLUDE_EVENTS= |
- | /generate_mean_and_stddev=false | + | /GENERATE_MEAN_AND_STDDEV=FALSE |
- | ! /append_to_existing_values=false | + | ! /APPEND_TO_EXISTING_VALUES=FALSE |
; | ; | ||
- | metric_time_between_events | + | Metric_Time_Between_Events |
- | /result_metric_name=diff | + | /RESULT_METRIC_NAME=DIFF |
- | ! /result_metric_folder=processed | + | ! /RESULT_METRIC_FOLDER=PROCESSED |
- | /event_sequence=e2+e1 | + | /EVENT_SEQUENCE=E2+E1 |
- | /exclude_events= | + | /EXCLUDE_EVENTS= |
- | /generate_mean_and_stddev=false | + | /GENERATE_MEAN_AND_STDDEV=FALSE |
- | /append_to_existing_values=true | + | /APPEND_TO_EXISTING_VALUES=TRUE |
; | ; | ||
</ | </ | ||
- | **note:** if there are multiple events, and they can occur in any sequence, then there would be no way of telling which sequence you really wanted. | + | **Note:** If there are multiple events, and they can occur in any sequence, then there would be no way of telling which sequence you really wanted. |
- | e1+mid+e2, and | + | E1+MID+E2, and |
- | e2+mid+e1 | + | E2+MID+E1 |
- | ===== example | + | ==== Example |
- | an alternative to the **metric time between events** would be to use the command **evaluate_expression**. in this case you can use **evaluate_expression** to compute the time differences between | + | An alternative to the **Metric Time Between Events** would be to use the command **Evaluate_Expression**. In this case you can use **Evaluate_Expression** to compute the time differences between |
< | < | ||
- | evaluate_expression | + | Evaluate_Expression |
- | /expression=event_label::original::e2-event_label::original::e1 | + | /EXPRESSION=EVENT_LABEL::ORIGINAL::E2-EVENT_LABEL::ORIGINAL::E1 |
- | /result_name=diff | + | /RESULT_NAME=DIFF |
- | /result_type=metric | + | /RESULT_TYPE=METRIC |
- | ! /result_folder=processed | + | ! /RESULT_FOLDER=PROCESSED |
; | ; | ||
</ | </ | ||
- | ===== visual3d versions | + | ==== Visual3D Versions |
+ | |||
+ | NOTE: When using events in a command, the commands will iterate across subjects contained in the current workspace. As such, events and sequences listed as command parameters should NOT contain a prefix. As each subject is processed, the event range/ | ||
- | note: when using events in a command, the commands will iterate across subjects contained in the current workspace. as such, events and sequences listed as command parameters should not contain a prefix. as each subject is processed, the event range/ | ||
- | }} |
visual3d/documentation/pipeline/metric_commands/metric_time_between_events.1718801489.txt.gz · Last modified: 2024/06/19 12:51 by sgranger