C# Class SharpMath.FFT.DFT1D

Performs the Discrete Fourier Transform (DFT) or Inverse-DFT of a 1-Dimensional discrete complex signal This is a slow CPU version purely designed to test the Fourier transform and for debugging purpose
ファイルを表示 Open project: Patapom/GodComplex

Public Methods

Method Description
DFT_Forward ( System.Complex _inputSignal ) : System.Complex[]

Applies the Discrete Fourier Transform to an input signal

Throws an exception if signal size is not a power of two!

DFT_Forward ( System.Complex _inputSignal, System.Complex _outputSpectrum ) : void

Applies the Discrete Fourier Transform to an input signal

Throws an exception if signal and spectrum sizes mismatch and if their size are not a power of two!

DFT_Inverse ( System.Complex _inputSpectrum ) : System.Complex[]

Applies the Inverse Discrete Fourier Transform to an input frequency spectrum

Throws an exception if spectrum size is not a power of two!

DFT_Inverse ( System.Complex _inputSpectrum, System.Complex _outputSignal ) : void

Applies the Inverse Discrete Fourier Transform to an input frequency spectrum

Throws an exception if signal and spectrum sizes mismatch and if their size are not a power of two!

Method Details

DFT_Forward() public static method

Applies the Discrete Fourier Transform to an input signal
Throws an exception if signal size is not a power of two!
public static DFT_Forward ( System.Complex _inputSignal ) : System.Complex[]
_inputSignal System.Complex The input signal of complex-valued amplitudes for each time sample
return System.Complex[]

DFT_Forward() public static method

Applies the Discrete Fourier Transform to an input signal
Throws an exception if signal and spectrum sizes mismatch and if their size are not a power of two!
public static DFT_Forward ( System.Complex _inputSignal, System.Complex _outputSpectrum ) : void
_inputSignal System.Complex The input signal of complex-valued amplitudes for each time sample
_outputSpectrum System.Complex The output complex-valued spectrum of amplitudes for each frequency. /// The spectrum of frequencies goes from [-N/2,N/2[ hertz, where N is the length of the input signal
return void

DFT_Inverse() public static method

Applies the Inverse Discrete Fourier Transform to an input frequency spectrum
Throws an exception if spectrum size is not a power of two!
public static DFT_Inverse ( System.Complex _inputSpectrum ) : System.Complex[]
_inputSpectrum System.Complex The input complex-valued spectrum of amplitudes for each frequency
return System.Complex[]

DFT_Inverse() public static method

Applies the Inverse Discrete Fourier Transform to an input frequency spectrum
Throws an exception if signal and spectrum sizes mismatch and if their size are not a power of two!
public static DFT_Inverse ( System.Complex _inputSpectrum, System.Complex _outputSignal ) : void
_inputSpectrum System.Complex The input complex-valued spectrum of amplitudes for each frequency
_outputSignal System.Complex The output signal of complex-valued amplitudes for each time sample
return void