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/26 20:06] – removed sgranger | visual3d:documentation:pipeline:metric_commands:metric_time_between_events [2024/07/17 15:46] (current) – created sgranger | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Metric Time Between Events ====== | ||
+ | |||
+ | Computes the time between events (or start and end of a sequence of events) as a metric. | ||
+ | |||
+ | **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 of that event to use for the calculation. A workaround can be found here [[Visual3D: | ||
+ | |||
+ | ==== Metric_Time_Between_Events Command Details ==== | ||
+ | |||
+ | Below are the details for this command: | ||
+ | |||
+ | |**Metric_Time_Between_Events** | ||
+ | |**/ | ||
+ | |**! / | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |**! / | ||
+ | |**! /Append to Existing Values=FALSE** | ||
+ | |||
+ | \\ | ||
+ | In this example, consider the metric **Right_Terminal_Double_Limb_Support** which is the time between **LHS** and **RTO**. | ||
+ | |||
+ | < | ||
+ | Metric_Time_Between_Events | ||
+ | / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | Below is the dialog that pops up when pipeline selection is edited by double clicking with the left mouse button. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | **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 | ||
+ | |||
+ | E1+E2 | ||
+ | E1 must occur before E2 or no metric signal will be created. | ||
+ | |||
+ | If it is not always possible to ensure the chronological order, a series of Pipeline Commands may be necessary. | ||
+ | |||
+ | ==== Example 1 : There is only one occurrence of E1 and E2 ==== | ||
+ | |||
+ | Execute the **Metric_Time_Between_Events** twice in succession, once with the range E1+E2, then the second one with the range E2+E1 and set the option / | ||
+ | |||
+ | < | ||
+ | Metric_Time_Between_Events | ||
+ | / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ; | ||
+ | |||
+ | Metric_Time_Between_Events | ||
+ | / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | **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. If this is the case, you would need to add an event in the middle of the sequence to be explicit about which sequences that you really want, such as | ||
+ | |||
+ | E1+MID+E2, and | ||
+ | E2+MID+E1 | ||
+ | ==== Example 2 : There is always the same number of occurrences of E1 and E2 ==== | ||
+ | |||
+ | 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 E2 and E1. | ||
+ | |||
+ | < | ||
+ | Evaluate_Expression | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | ==== Visual3D Versions supporting Subject Prefixes ==== | ||
+ | |||
+ | 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.1719432370.txt.gz · Last modified: 2024/06/26 20:06 by sgranger