visual3d:documentation:pipeline:metric_commands:metric_compute_dft_coefficients
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_compute_dft_coefficients [2024/07/03 17:41] – created sgranger | visual3d:documentation:pipeline:metric_commands:metric_compute_dft_coefficients [2025/09/23 15:08] (current) – [Examples] wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Metric_Compute_DFT_Coefficients ====== | + | =====Metric Compute DFT Coefficients===== |
- | The Discrete Fourier Transform of a Signal | + | ====Overview==== |
- | + | Metric Compute DFT Coefficients is used to compute | |
- | This command computes | + | |
The form of the DFT is as follows: | The form of the DFT is as follows: | ||
Line 17: | Line 16: | ||
See also [[Visual3D: | See also [[Visual3D: | ||
- | {{ComputeDFTdialog.jpg}} | + | ====Pipeline Command==== |
- | + | The command, as seen in the pipeline workshop, is below. | |
- | === Pipeline Command === | + | < |
- | + | Metric_Compute_DFT_Coefficients | |
- | **Metric_Compute_DFT_Coefficients** | + | |
/ | / | ||
+ | ! / | ||
! / | ! / | ||
- | ! / | ||
! / | ! / | ||
+ | ! / | ||
! / | ! / | ||
- | ! /RESULT_FOLDER=DFT | + | ! / |
- | !/ | + | ! / |
- | !/[[Visual3D: | + | |
! / | ! / | ||
! /END_FRAME= | ! /END_FRAME= | ||
- | ! / | ||
! / | ! / | ||
- | / | + | ! / |
- | **;** | + | </ |
- | === Signal_Components === | + | |
- | Each component of the signal will generate a metric signal containing the coefficients for that component of the signal. | + | ====Command Parameters==== |
+ | The following table shows the command parameters and descriptions: | ||
- | === Number | + | |**SIGNAL_TYPES** |**Specify signal types**| |
+ | |**SIGNAL_FOLDER**|**Specify signal folder**| | ||
+ | |**SIGNAL_NAMES**|**Specify signal names**| | ||
+ | |**SIGNAL_COMPONENTS**|**Each component | ||
+ | |**RESULT_FOLDER**|**Specify folder containing results**| | ||
+ | |**RESULT_SUFFIX**|**Specify suffix applied to results**| | ||
+ | |**EVENT_SEQUENCE**|**The [[Visual3D: | ||
+ | |**EXCLUDE_EVENTS**|**If this event occurs before the first and last event, do not compute a metric**| | ||
+ | |**START_FRAME**|**Specify the starting frame of the sequence**| | ||
+ | |**END_FRAME**|**Specify the ending frame of the sequence**| | ||
+ | |**BASE_FREQUENCY**|**The base frequency is the fundamental frequency of the signal**| | ||
+ | |**NUM_FREQUENCIES**|**Determines the number of coefficients that will be stored in the resulting metric signal.**| | ||
- | The parameter Num_Frequencies determines the number of coefficients that will be stored | + | ====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. | ||
- | If Num_Frequencies is empty, the number is determined consistent with a standard DFT or FFT. | + | {{: |
- | Num_Frequencies = 1 + NumFrames/2 | + | The dialog box allows you to assign values to the command parameters outlined above. |
- | where the Maximum Number of Frequencies | + | ====Examples==== |
+ | ===Simple example: Compute DFT coefficients for Analog signals=== | ||
- | === Event_Sequence === | + | One of the primary applications of the **Compute DFT Coefficients** command is to perform analysis of analog signals like force readings and EMGs. Here we compute the DFT coefficients for a folder containing EMG and force plate data. |
- | The [[Visual3D: | + | Start by identifying |
- | === Base_Frequency === | + | {{: |
- | If BASE_FREQUENCY is empty, | + | Now, add the **Compute DFT Coefficients** command to your pipeline |
- | + | ||
- | Frequency= SamplingRate/ | + | |
- | Else | + | |
- | + | ||
- | Frequency= Numerical value or Expression | + | |
- | === Resulting Metric Signal === | + | |
- | + | ||
- | The metric signal is stored as follows (Base_Frequency, | + | |
- | + | ||
- | The Base_Frequency | + | |
- | + | ||
- | If there are multiple ranges of data, there will be a " | + | |
- | + | ||
- | see also : [[Visual3D: | + | |
+ | < | ||
+ | Metric_Compute_DFT_Coefficients | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | / | ||
+ | ! / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! /END_FRAME= | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | Click **Execute Pipeline** and navigate back to the **Signals and Events** tab. You should now see a **DFT** folder within the **Metric** folder containing the coefficients for each processed signal. | ||
+ | ===Complex example=== | ||
+ | To see how this command can be used to compute EMG power data please go to [[Visual3D: |
visual3d/documentation/pipeline/metric_commands/metric_compute_dft_coefficients.1720028496.txt.gz · Last modified: 2024/07/03 17:41 by sgranger