User Tools

Site Tools


visual3d:documentation:pipeline:metric_commands:metric_compute_dft_coefficients

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
visual3d:documentation:pipeline:metric_commands:metric_compute_dft_coefficients [2024/06/19 12:51] sgrangervisual3d:documentation:pipeline:metric_commands:metric_compute_dft_coefficients [2024/07/17 15:46] (current) – created sgranger
Line 1: Line 1:
-{{the discrete fourier transform of a signal+====== Metric Compute DFT Coefficients ======
  
-this command computes metric signal containing the dft coefficients and the base frequency.+The Discrete Fourier Transform of Signal
  
-the form of the dft is as follows:+This command computes a metric signal containing the DFT coefficients and the Base Frequency. 
 + 
 +The form of the DFT is as follows:
  
 p(t)= p0 + p1 sin(**w** t) + p2 cos(**w** t) + p3 sin(2**w** t) + p4 cos(2 **w** t) + .... p(t)= p0 + p1 sin(**w** t) + p2 cos(**w** t) + p3 sin(2**w** t) + p4 cos(2 **w** t) + ....
  
-where **w** = 2 * pi base_frequency+where **w** = 2 * PI Base_Frequency
  
-the distinct difference between a dft and an fft is that the dft allows the user the option to specify the base frequency.+The distinct difference between a DFT and an FFT is that the DFT allows the user the option to specify the base frequency.
  
-this is useful if you want to compare the coefficients across trials and/or across subjects. it also means that the base frequency has physical meaning, such as stride frequency.+This is useful if you want to compare the coefficients across trials and/or across subjects. It also means that the base frequency has physical meaning, such as stride frequency.
  
-see also [[visual3d:documentation:pipeline:metric_commands:metric_compute_power_from_dft_coefficients|compute power from dft coefficients]]+See also [[Visual3D:Documentation:Pipeline:Metric_Commands:Metric_Compute_Power_From_DFT_Coefficients|Compute Power from DFT coefficients]]
  
-computedftdialog.jpg+{{:ComputeDFTdialog.jpg}}
  
-==== pipeline command ====+=== Pipeline Command ===
  
-**metric_compute_dft_coefficients** +**Metric_Compute_DFT_Coefficients** 
-/signal_types+/SIGNAL_TYPES
-! /signal_names+! /SIGNAL_NAMES
-! /signal_folder=original +! /SIGNAL_FOLDER=ORIGINAL 
-! /signal_components=all_components +! /SIGNAL_COMPONENTS=ALL_COMPONENTS 
-! /result_suffix=_dft +! /RESULT_SUFFIX=_DFT 
-! /result_folder=dft +! /RESULT_FOLDER=DFT 
-!/[[visual3d:documentation:c3d_signal_types:event_label_data_type#event_sequence|event_sequence]]= +!/[[Visual3D:Documentation:C3D_Signal_Types:EVENT_LABEL_Data_Type#Event_Sequence|EVENT_SEQUENCE]]= 
-!/[[visual3d:documentation:c3d_signal_types:event_label_data_type#exclude_events|exclude_events]]= +!/[[Visual3D:Documentation:C3D_Signal_Types:EVENT_LABEL_Data_Type#Exclude_Events|EXCLUDE_EVENTS]]= 
-! /start_frame+! /START_FRAME
-! /end_frame+! /END_FRAME
-! /use_point_rate=true +! /USE_POINT_RATE=TRUE 
-! /base_frequency+! /BASE_FREQUENCY
-/num_frequencies=4+/NUM_FREQUENCIES=4
 **;** **;**
-==== signal_components ====+=== Signal_Components === 
 + 
 +Each component of the signal will generate a metric signal containing the coefficients for that component of the signal.
  
-each component of the signal will generate a metric signal containing the coefficients for that component of the signal.+=== Number of Frequencies ===
  
-==== number of frequencies ====+The parameter 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 in the resulting metric signal.+If Num_Frequencies is empty, the number is determined consistent with a standard DFT or FFT.
  
-if num_frequencies is empty, the number is determined consistent with a standard dft or fft.+Num_Frequencies = 1 + NumFrames/2
  
-num_frequencies 1 + numframes/2+where the Maximum Number of Frequencies 0.5*DataRate;
  
-where the maximum number of frequencies 0.5*datarate;+=== Event_Sequence ===
  
-==== event_sequence ====+The [[Visual3D:Documentation:C3D_Signal_Types:EVENT_LABEL_Data_Type#Event_Sequence|Event Sequence and Exclude_Sequence]] define the range of frames used to compute the DFT coefficients
  
-the [[visual3d:documentation:c3d_signal_types:event_label_data_type#event_sequence|event sequence and exclude_sequence]] define the range of frames used to compute the dft coefficients+=== Base_Frequency ===
  
-==== base_frequency ====+If BASE_FREQUENCY is empty,
  
-if base_frequency is empty,+Frequency= SamplingRate/NumberOfFrames (average per cycle per file) 
 +Else
  
-frequencysamplingrate/numberofframes (average per cycle per file) +FrequencyNumerical value or Expression 
-else+=== Resulting Metric Signal ===
  
-frequency= numerical value or expression +The metric signal is stored as follows (Base_Frequency, p0, p1, p2, p3, p4, ....)
-==== resulting metric signal ====+
  
-the metric signal is stored as follows (base_frequency, p0, p1, p2, p3, p4, ....)+The Base_Frequency and coefficients are stored as components of the signal.
  
-the base_frequency and coefficients are stored as components of the signal.+If there are multiple ranges of data, there will be a "frame" or "row" for each range.
  
-if there are multiple ranges of data, there will be a "frame" or "row" for each range.+see also : [[Visual3D:Documentation:Pipeline:Metric_Commands:Metric_Compute_Power_From_DFT_Coefficients|Metric_Compute_Power_From_DFT_Coefficients]]
  
-see also : [[visual3d:documentation:pipeline:metric_commands:metric_compute_power_from_dft_coefficients|metric_compute_power_from_dft_coefficients]] 
  
  
-}} 
visual3d/documentation/pipeline/metric_commands/metric_compute_dft_coefficients.1718801475.txt.gz · Last modified: 2024/06/19 12:51 by sgranger