visual3d:documentation:pipeline:metric_commands:metric_signal_value_at_event
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_signal_value_at_event [2024/06/17 18:20] – created sgranger | visual3d:documentation:pipeline:metric_commands:metric_signal_value_at_event [2025/05/21 17:36] (current) – Cleaned up page for a customer. Still needs to be put into Pipeline project format. wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Metric Signal Value At Event ====== | ||
+ | The Metric_Signal_Value_At_Event command provides the value of the specified signal at the specified frame of data is stored as a metric. | ||
- | + | Notes: | |
- | + | * All components of the specified signal will be stored in the metric signal. | |
- | ===== Legacy Command ===== | + | |
- | + | ||
- | **Metric_Signal_At_Event** replaced the command **Signal_Value_At_Event** | + | |
- | + | ||
- | ===== Description ===== | + | |
- | + | ||
- | The value of the specified signal at the specified frame of data is stored as a metric. | + | |
- | + | ||
- | * All components of the specified signal will be stored in the metric signal. | + | |
- | * **Since version 5:** the user has the option to select an individual component | + | |
* If there are multiple occurrences of an EVENT, there will be multiple entries in the metric that is created. | * If there are multiple occurrences of an EVENT, there will be multiple entries in the metric that is created. | ||
* There is an option to calculate the mean and standard deviation for metrics that have multiple values. | * There is an option to calculate the mean and standard deviation for metrics that have multiple values. | ||
+ | * In cases where there is **NO_DATA** at an event, you need to specify the parameter **/ | ||
+ | * **Metric_Signal_At_Event** replaced the legacy command **Signal_Value_At_Event** | ||
+ | |||
+ | {{: | ||
- | [[MetricSignalValueAtEvent.png]] | + | ===== Parameters ===== |
- | |**Metric_Signal_Value_At_Event** | + | ^ Parameter ^ Description ^ |
|**/ | |**/ | ||
|**/ | |**/ | ||
Line 30: | Line 26: | ||
|**/ | |**/ | ||
- | ===== Example Value of a Target ===== | + | ===== Example: Find Value of a Target ===== |
This example calculates the value of the TARGET **RFT1** at the Event_Label **RON** | This example calculates the value of the TARGET **RFT1** at the Event_Label **RON** | ||
- | **Metric_Signal_Value_At_Event** | + | < |
+ | Metric_Signal_Value_At_Event | ||
/ | / | ||
/ | / | ||
Line 45: | Line 42: | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
- | **Note:** In cases where there is **NO_DATA** at an event, you need to specify the parameter **/Retain_No_Data_Values=TRUE** should you want this included in the resulting signal. | + | </code> |
- | ===== Example Time at an Event ===== | + | ==== For a single |
- | + | ||
- | This example calculates the time of the Event_Label **RON** | + | |
- | + | ||
- | **Metric_Signal_Value_At_Event** | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | **;** | + | |
- | ===== Component | + | |
Since Metric_Signal_Value_At_Event outputs all three components, here is a workaround of the previous example that will output one component. Evaluate_Expression is used to create a signal with one component, the z component for **RFT1**. Then the Metric_Signal_Value_At_Event will calculate the value of the TARGET **RFT1** at the Event_Label **RON**. | Since Metric_Signal_Value_At_Event outputs all three components, here is a workaround of the previous example that will output one component. Evaluate_Expression is used to create a signal with one component, the z component for **RFT1**. Then the Metric_Signal_Value_At_Event will calculate the value of the TARGET **RFT1** at the Event_Label **RON**. | ||
Line 88: | Line 69: | ||
/ | / | ||
/ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | ===== Example: Calculate the Time of an Event ===== | ||
+ | |||
+ | This example calculates the time of the Event_Label **RON** | ||
+ | |||
+ | < | ||
+ | Metric_Signal_Value_At_Event | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
; | ; | ||
</ | </ | ||
Line 93: | Line 93: | ||
===== P2D Signals ===== | ===== P2D Signals ===== | ||
- | Consider a P2D signal created using [[Visual3D: | + | Consider a [[visual3d: |
- | The resulting signal has three components, an index, a mean signals, and a standard deviation signal | + | |
- | It is possible to compute the maximum value of the 3 components using [[Visual3D: | + | Without having an event you cannot get the value of a signal at that event using Metric_Signal_Value_At_Event. One solution, albeit a non-intuitive solution is to [[Visual3D: |
- | It isn't possible to directly identify the standard deviation at that index because it isn't possible to define an Event for a time normalized signal (e.g.it has no frame rate or time. | + | |
- | Without having an event you cannot get the value of a signal at that event using Metric_Signal_Value_At_Event | + | < |
- | One solution, albeit a non-intuitive solution is to [[Visual3D: | + | Evaluate_Expression |
- | **Evaluate_Expression** | + | |
/ | / | ||
! / | ! / | ||
Line 108: | Line 107: | ||
/ | / | ||
!/ | !/ | ||
- | '//;// | + | ; |
- | For the resulting signal, the maximum value and the associated standard deviation will be in the first frame | + | </code> |
- | + | ||
+ | For the resulting signal, the maximum value and the associated standard deviation will be in the first frame. | ||
visual3d/documentation/pipeline/metric_commands/metric_signal_value_at_event.1718648442.txt.gz · Last modified: 2024/06/17 18:20 by sgranger