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/19 12:51] – 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: | ||
- | {{===== legacy command | + | ====== Metric Signal Value At Event ====== |
- | **metric_signal_at_event** replaced the command | + | The Metric_Signal_Value_At_Event |
- | ===== description ===== | + | Notes: |
+ | * All components of the specified signal will be stored in the metric signal. The user also 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. | ||
+ | * 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** | ||
- | 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. | + | ===== Parameters ===== |
- | * **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. | + | |
- | * there is an option to calculate the mean and standard deviation for metrics that have multiple values. | + | |
- | metricsignalvalueatevent.png | + | ^ Parameter ^ Description ^ |
+ | |**/ | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |**/ | ||
- | |**metric_signal_value_at_event** | + | ===== Example: Find Value of a Target |
- | |**/ | + | |
- | |**/ | + | |
- | |**/ | + | |
- | |**/ | + | |
- | |**/ | + | |
- | |**/ | + | |
- | |**/ | + | |
- | |**/ | + | |
- | |**/ | + | |
- | |**/ | + | |
- | ===== example value of a target ===== | + | This example |
- | this example calculates the value of the target **rft1** at the event_label **ron** | + | < |
+ | Metric_Signal_Value_At_Event | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
- | **metric_signal_value_at_event** | + | ==== For a single Component |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | /event_name=ron | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | **;** | + | |
- | **note:** in cases where there is **no_data** at an event, you need to specify the parameter **/ | + | |
- | ===== example | + | Since Metric_Signal_Value_At_Event outputs all three components, here is a workaround of the previous |
- | this example calculates the time of the event_label **ron** | + | < |
+ | ! RFT1 Z component | ||
+ | Evaluate_Expression | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
- | **metric_signal_value_at_event** | + | Metric_Signal_Value_At_Event |
- | /result_metric_name=ron_time | + | /Result_Metric_Name=RFT1_ON |
- | /result_metric_folder=processed | + | /Result_Metric_Folder=PROCESSED |
- | /signal_types=frame_numbers | + | /Signal_Types=DERIVED |
- | /signal_names=time | + | /Signal_Names=RFT1_Z |
- | /signal_folder=original | + | /Signal_Folder=ORIGINAL |
- | /event_name=ron | + | /Event_Name=RON |
- | /generate_mean_and_stddev=false | + | /Generate_Mean_And_Stddev=FALSE |
- | /append_to_existing_values=false | + | /Append_To_Existing_Values=FALSE |
- | /generate_metric_length_metric=false | + | /Generate_Metric_Length_Metric=FALSE |
- | /retain_no_data_values=false | + | /Retain_No_Data_Values=TRUE |
- | **;** | + | ; |
- | ===== component workaround ===== | + | </ |
- | 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**. | + | ===== Example: Calculate |
- | < | + | This example calculates the time of the Event_Label **RON** |
- | ! rft1 z component | + | |
- | evaluate_expression | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | ; | + | |
- | metric_signal_value_at_event | + | < |
- | /result_metric_name=rft1_on | + | Metric_Signal_Value_At_Event |
- | /result_metric_folder=processed | + | /Result_Metric_Name=RON_TIME |
- | /signal_types=derived | + | /Result_Metric_Folder=PROCESSED |
- | /signal_names=rft1_z | + | /Signal_Types=FRAME_NUMBERS |
- | /signal_folder=original | + | /Signal_Names=TIME |
- | /event_name=ron | + | /Signal_Folder=ORIGINAL |
- | /generate_mean_and_stddev=false | + | /Event_Name=RON |
- | /append_to_existing_values=false | + | /Generate_Mean_And_Stddev=FALSE |
- | /generate_metric_length_metric=false | + | /Append_To_Existing_Values=FALSE |
- | /retain_no_data_values=true | + | /Generate_Metric_Length_Metric=FALSE |
+ | /Retain_No_Data_Values=FALSE | ||
; | ; | ||
</ | </ | ||
- | ===== p2d signals ===== | + | ===== P2D Signals ===== |
+ | |||
+ | Consider a [[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: | ||
+ | |||
+ | < | ||
+ | Evaluate_Expression | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | !/ | ||
+ | ; | ||
+ | </ | ||
- | consider a p2d signal created using [[visual3d: | + | For the resulting signal, the maximum value and the associated standard deviation will be in the first frame. |
- | 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: | + | |
- | 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** | + | |
- | / | + | |
- | ! / | + | |
- | ! / | + | |
- | ! / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | !/ | + | |
- | '//;// | + | |
- | 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.1718801486.txt.gz · Last modified: 2024/06/19 12:51 by sgranger