Class FFT
Assembly: TowseyLibrary.dll
Syntax
Constructors
|
Improve this Doc
View Source
FFT(Int32)
Declaration
public FFT(int windowSize)
Parameters
| Type |
Name |
Description |
| Int32 |
windowSize |
|
|
Improve this Doc
View Source
FFT(Int32, FFT.WindowFunc)
Initializes a new instance of the FFT class.
It is a wrapper for calling method that does the FFT.
Window Power equals sum of squared window values.
Declaration
public FFT(int windowSize, FFT.WindowFunc w)
Parameters
Fields
|
Improve this Doc
View Source
BlackmanHarris
Declaration
public static readonly FFT.WindowFunc BlackmanHarris
Field Value
|
Improve this Doc
View Source
BlackmanNuttall
Declaration
public static readonly FFT.WindowFunc BlackmanNuttall
Field Value
|
Improve this Doc
View Source
DefaultFftWindow
Declaration
public const string DefaultFftWindow = "HANNING"
Field Value
|
Improve this Doc
View Source
FlatTop
Declaration
public static readonly FFT.WindowFunc FlatTop
Field Value
|
Improve this Doc
View Source
Hamming
Declaration
public static readonly FFT.WindowFunc Hamming
Field Value
|
Improve this Doc
View Source
Hanning
See comment for Hanning that compares Hamming with Hanning.
Our experience with analysis of environmental recordings, where we often up or down sample in order to calculate indices,
is that the HANNING window is to be preferred and it was made the default in July 2020.
Declaration
public static readonly FFT.WindowFunc Hanning
Field Value
|
Improve this Doc
View Source
KeyHammingWindow
Declaration
public const string KeyHammingWindow = "HAMMING"
Field Value
|
Improve this Doc
View Source
KeyHanningWindow
Declaration
public const string KeyHanningWindow = "HANNING"
Field Value
|
Improve this Doc
View Source
KeyNoWindow
Declaration
public const string KeyNoWindow = "NONE"
Field Value
|
Improve this Doc
View Source
Lanczos
Declaration
public static readonly FFT.WindowFunc Lanczos
Field Value
|
Improve this Doc
View Source
Nuttall
Declaration
public static readonly FFT.WindowFunc Nuttall
Field Value
Properties
|
Improve this Doc
View Source
CoeffCount
Declaration
public int CoeffCount { get; }
Property Value
|
Improve this Doc
View Source
WindowPower
Declaration
public double WindowPower { get; }
Property Value
|
Improve this Doc
View Source
WindowSize
Declaration
public int WindowSize { get; }
Property Value
|
Improve this Doc
View Source
WindowWeights
Declaration
public double[] WindowWeights { get; }
Property Value
Methods
|
Improve this Doc
View Source
Gauss(Double)
Declaration
public static FFT.WindowFunc Gauss(double sigma)
Parameters
| Type |
Name |
Description |
| Double |
sigma |
|
Returns
|
Improve this Doc
View Source
GetWindowFunction(String)
Returns an FFT window function given the name of the window type.
Declaration
public static FFT.WindowFunc GetWindowFunction(string name)
Parameters
| Type |
Name |
Description |
| String |
name |
FFT window name.
|
Returns
|
Improve this Doc
View Source
Invoke(Double[])
Invokes an FFT on the given data array.
cdata contains the real and imaginary terms of the coefficients representing cos and sin components respectively.
cdata is symmetrical about terms 512 & 513. Can ignore all coefficients 512 and above.
Declaration
public double[] Invoke(double[] data)
Parameters
| Type |
Name |
Description |
| Double[] |
data |
a single frame of signal values.
|
Returns
|
Improve this Doc
View Source
Invoke(Double[], Int32)
Declaration
public double[] Invoke(double[] data, int offset)
Parameters
Returns
|
Improve this Doc
View Source
InvokeDotNetFFT(Double[])
Declaration
public double[] InvokeDotNetFFT(double[] data)
Parameters
| Type |
Name |
Description |
| Double[] |
data |
|
Returns
Extension Methods