visual3d:documentation:pipeline:metric_commands:metric_root_mean_squared
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_root_mean_squared [2024/07/12 14:04] – created sgranger | visual3d:documentation:pipeline:metric_commands:metric_root_mean_squared [2025/10/03 19:13] (current) – [Example: Joint Power RMS] wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | || | + | ====Overview==== |
- | Compute | + | The metric command **Root Mean Squared** can be used to compute |
Given data Xi for i=1,2....n | Given data Xi for i=1,2....n | ||
Mean Squared Error= MSE = sum(Xi^2)/n | Mean Squared Error= MSE = sum(Xi^2)/n | ||
Root Mean Squared Error= RMS= Sqrt(MSE) ; | Root Mean Squared Error= RMS= Sqrt(MSE) ; | ||
- | \\ | ||
- | For example, compute the root mean squared value of the Knee Joint Power from **Start** to **End** | ||
- | {{MetricRootMeanSquared.png}} | + | The command can be found in the **Pipeline Workshop** under **Metric**. |
+ | =====Pipeline Command===== | ||
+ | The syntax for the function is as follows: | ||
- | |**Metric_Root_Mean_Squared** | + | < |
- | |**/Signal_Types=** | + | Metric_Root_Mean_Squared |
- | |**/Signal_Names=** | + | ! /RESULT_METRIC_FOLDER=PROCESSED |
- | |**/Signal_Folder** | + | /RESULT_METRIC_NAME= |
- | |**/ | + | ! /APPLY_AS_SUFFIX_TO_SIGNAL_NAME=FALSE |
- | |**/[[Visual3D: | + | /SIGNAL_TYPES= |
- | |**/[[Visual3D: | + | ! /SIGNAL_FOLDER=ORIGINAL |
- | |**/[[Visual3D: | + | ! /SIGNAL_NAMES= |
- | |**/[[Visual3D: | + | ! /COMPONENT_SEQUENCE= |
- | |**/Metric_Name=** |Right Angle Power RMS | | + | /EVENT_SEQUENCE= |
- | |**/Apply_As_Suffix_To_Signal_Name=** | + | /EXCLUDE_EVENTS= |
- | |**/Generate_Mean_And_STDDEV=** | + | ! /GENERATE_MEAN_AND_STDDEV=TRUE |
- | |**/Append_To_Existing_Values=** |FALSE | | + | ! /GENERATE_MEAN_AND_STDDEV_ACROSS_SUBJECTS=FALSE |
- | |**/ | + | ! / |
- | |**;** | | | + | ; |
+ | </ | ||
+ | =====Command Parameters===== | ||
+ | The following table shows the command parameters seen above and their descriptions: | ||
+ | |**RESULT_METRIC_FOLDER**|**The name of the result signal folder**| | ||
+ | |**RESULT_METRIC_NAME**|**The name of the result signal**| | ||
+ | |**APPLY_AS_SUFFIX_TO_SIGNAL_NAME**|**Suffix to be applied to signals**| | ||
+ | |**SIGNAL_TYPES**|**Type of signal being processed**| | ||
+ | |**SIGNAL_FOLDER**|**Original location of signals**| | ||
+ | |**SIGNAL_NAMES**|**Specify names of signals**| | ||
+ | |**COMPONENT_SEQUENCE**|**Which component of the signal will be used for statistical analysis of the sequence.**| | ||
+ | |**EVENT_SEQUENCE**|** A list of events (separated by " | ||
+ | |**EXCLUDE_EVENTS**|**This Event Sequence must not be during the sequence requested. For example, LTO_RHS**| | ||
+ | |**GENERATE_MEAN_AND_STDDEV**|**(True or False)Generate the mean and standard deviation for all of the metrics created**| | ||
+ | |**GENERATE_MEAN_AND_STDDEV_ACROSS_SUBJECTS**|**(True or False)Generate the mean and standard deviation across all subjects in trial**| | ||
+ | |**APPEND_TO_EXISTING_VALUES**|**(True or False)Append this list of metrics to an existing metric of the same result name**| | ||
+ | |||
+ | ====Dialog==== | ||
+ | |||
+ | The command can be edited in a text editor or in a dialog form. To edit in the dialog pop up form either click on the **Edit** button in the pipeline workshop or double-click on the pipeline command. The dialog is shown below. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | The dialog box allows you to assign values to the command parameters outlined above. | ||
+ | |||
+ | ====Example: | ||
+ | For example, compute the root mean squared value of the Ankle Joint Power from **RHS** to **RTO** | ||
+ | |||
+ | < | ||
+ | Metric_Root_Mean_Squared | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | Results: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ====Example: | ||
+ | Here **Metric Root Mean Squared** is used along with **Metric Signal Value at Event** to find the RMS of the right ankle moment at heel strikes in a gait trial. | ||
+ | |||
+ | First, define key gait events across files: | ||
+ | |||
+ | < | ||
+ | Automatic_Gait_Events | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | Next, the right ankle moment at each heel strike is computed using **Metric Signal Value at Event** and the RMS of this metric is found for each trial: | ||
+ | |||
+ | < | ||
+ | Metric_Signal_Value_At_Event | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | / | ||
+ | ! / | ||
+ | / | ||
+ | ! / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | |||
+ | Metric_Root_Mean_Squared | ||
+ | ! / | ||
+ | / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | !/ | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | Results: | ||
+ | |||
+ | The resulting metrics can be found in the **METRIC: | ||
+ | |||
+ | {{: |
visual3d/documentation/pipeline/metric_commands/metric_root_mean_squared.1720793091.txt.gz · Last modified: 2024/07/12 14:04 by sgranger