visual3d:documentation:pipeline:signal_commands:moving_rms
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:pipeline:signal_commands:moving_rms [2024/06/19 12:53] – sgranger | visual3d:documentation:pipeline:signal_commands:moving_rms [2024/07/17 15:46] (current) – created sgranger | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{the **moving_rms** command computes the linear envelope of a signal (typically an emg signal) by calculating the rms value within a moving window. the rms is described [[http:// | + | ====== Moving RMS ====== |
- | the number of frames in the window must be an odd number. | + | The **Moving_RMS** command computes |
+ | |||
+ | The number of frames in the window must be an odd number. | ||
< | < | ||
- | moving_rms | + | Moving_RMS |
- | ! /signal_types= | + | ! /Signal_Types= |
- | ! /signal_folder=original | + | ! /Signal_Folder=ORIGINAL |
- | ! /signal_names= | + | ! /Signal_Names= |
- | ! /result_types= | + | ! /RESULT_TYPES= |
- | ! /result_folders=processed | + | ! /RESULT_FOLDERS=PROCESSED |
- | ! /result_name= | + | ! /RESULT_NAME= |
- | ! /apply_as_suffix_to_signal_name= | + | ! /APPLY_AS_SUFFIX_TO_SIGNAL_NAME= |
- | ! /num_window_frames=3 | + | ! /NUM_WINDOW_FRAMES=3 |
; | ; | ||
</ | </ | ||
- | moving_rms.png | + | {{: |
- | ===== frame window ===== | + | ==== Frame Window |
- | the command | + | The command |
- | so, if the window was 11 frames. | + | So, if the window was 11 frames. |
- | * the first output frame is frame 6 computed from frames 1-11. | + | * The first output frame is frame 6 computed from frames 1-11. |
- | * the second output frame is frame 7 computed from frames 2-12 etc. | + | * The second output frame is frame 7 computed from frames 2-12 Etc. |
- | typically, this window is reported as a time. since the number of frames is dependent on the sampling rate, you must convert the time (in seconds) to frames. | + | Typically, this window is reported as a time. Since the number of frames is dependent on the sampling rate, you must convert the time (in seconds) to frames. |
- | to convert time to frames, you must multiply the time by the sampling rate and add 1 (time 0.0 is equal to frame 1). this as an expression is:\\ | + | To convert time to frames, you must multiply the time by the sampling rate and add 1 (time 0.0 is equal to frame 1). This as an expression is:\\ |
- | ( time * parameter::analog::rate ) + 1\\ | + | ( time * PARAMETER::ANALOG::RATE ) + 1\\ |
\\ | \\ | ||
- | to specify a frame window of 100 ms (0.1 seconds), would be specified as:\\ | + | To specify a frame window of 100 ms (0.1 seconds), would be specified as:\\ |
- | /num_window_frames=( 0.1 * parameter::analog::rate ) + 1\\ | + | /NUM_WINDOW_FRAMES=( 0.1 * PARAMETER::ANALOG::RATE ) + 1\\ |
\\ | \\ | ||
- | ===== pipeline | + | ==== Pipeline |
- | a more typical window for the rms filter is 100 ms, which can be achieved as follows: | + | A more typical window for the RMS filter is 100 ms, which can be achieved as follows: |
< | < | ||
Line 46: | Line 48: | ||
! -------------------------------------------- | ! -------------------------------------------- | ||
- | moving_rms | + | Moving_RMS |
- | /signal_types=analog | + | /SIGNAL_TYPES=ANALOG |
- | /signal_folder=original | + | /SIGNAL_FOLDER=ORIGINAL |
- | /signal_names=emg1+emg2 | + | /SIGNAL_NAMES=EMG1+EMG2 |
- | /result_types=analog | + | /RESULT_TYPES=ANALOG |
- | /result_folders=rms | + | /RESULT_FOLDERS=RMS |
- | /result_name= | + | /RESULT_NAME= |
- | /apply_as_suffix_to_signal_name=true | + | /APPLY_AS_SUFFIX_TO_SIGNAL_NAME=TRUE |
- | /num_window_frames=(0.1*parameter::analog::rate)+1 | + | /NUM_WINDOW_FRAMES=(0.1*PARAMETER::ANALOG::RATE)+1 |
; | ; | ||
</ | </ | ||
- | ===== pipeline | + | ==== Pipeline |
- | to specify a 150 ms (0.15 seconds) window for the rms, the commands are as follows: | + | To specify a 150 ms (0.15 seconds) window for the RMS, the commands are as follows: |
< | < | ||
Line 67: | Line 69: | ||
! -------------------------------------------- | ! -------------------------------------------- | ||
- | moving_rms | + | Moving_RMS |
- | /signal_types=analog | + | /SIGNAL_TYPES=ANALOG |
- | /signal_folder=original | + | /SIGNAL_FOLDER=ORIGINAL |
- | /signal_names=emg1+emg2 | + | /SIGNAL_NAMES=EMG1+EMG2 |
- | /result_types=analog | + | /RESULT_TYPES=ANALOG |
- | /result_folders=rms | + | /RESULT_FOLDERS=RMS |
- | /result_name= | + | /RESULT_NAME= |
- | /apply_as_suffix_to_signal_name=true | + | /APPLY_AS_SUFFIX_TO_SIGNAL_NAME=TRUE |
- | /num_window_frames=(0.15*parameter::analog::rate)+1 | + | /NUM_WINDOW_FRAMES=(0.15*PARAMETER::ANALOG::RATE)+1 |
; | ; | ||
</ | </ | ||
- | }} | + |
visual3d/documentation/pipeline/signal_commands/moving_rms.1718801593.txt.gz · Last modified: 2024/06/19 12:53 by sgranger