Search Results for

    Show / Hide Table of Contents

    Class FFT

    Inheritance
    Object
    FFT
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: TowseyLibrary
    Assembly: TowseyLibrary.dll
    Syntax
    public sealed class FFT

    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
    Type Name Description
    Int32 windowSize
    FFT.WindowFunc w

    Fields

    | Improve this Doc View Source

    BlackmanHarris

    Declaration
    public static readonly FFT.WindowFunc BlackmanHarris
    Field Value
    Type Description
    FFT.WindowFunc
    | Improve this Doc View Source

    BlackmanNuttall

    Declaration
    public static readonly FFT.WindowFunc BlackmanNuttall
    Field Value
    Type Description
    FFT.WindowFunc
    | Improve this Doc View Source

    DefaultFftWindow

    Declaration
    public const string DefaultFftWindow = "HANNING"
    Field Value
    Type Description
    String
    | Improve this Doc View Source

    FlatTop

    Declaration
    public static readonly FFT.WindowFunc FlatTop
    Field Value
    Type Description
    FFT.WindowFunc
    | Improve this Doc View Source

    Hamming

    The Hamming window reduces the immediate adjacent sidelobes (compared to the Hanning) but at the expense of increased distal side-lobes. https://en.wikipedia.org/wiki/Window_function.

    Declaration
    public static readonly FFT.WindowFunc Hamming
    Field Value
    Type Description
    FFT.WindowFunc
    | 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
    Type Description
    FFT.WindowFunc
    | Improve this Doc View Source

    KeyHammingWindow

    Declaration
    public const string KeyHammingWindow = "HAMMING"
    Field Value
    Type Description
    String
    | Improve this Doc View Source

    KeyHanningWindow

    Declaration
    public const string KeyHanningWindow = "HANNING"
    Field Value
    Type Description
    String
    | Improve this Doc View Source

    KeyNoWindow

    Declaration
    public const string KeyNoWindow = "NONE"
    Field Value
    Type Description
    String
    | Improve this Doc View Source

    Lanczos

    Declaration
    public static readonly FFT.WindowFunc Lanczos
    Field Value
    Type Description
    FFT.WindowFunc
    | Improve this Doc View Source

    Nuttall

    Declaration
    public static readonly FFT.WindowFunc Nuttall
    Field Value
    Type Description
    FFT.WindowFunc

    Properties

    | Improve this Doc View Source

    CoeffCount

    Declaration
    public int CoeffCount { get; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    WindowPower

    Declaration
    public double WindowPower { get; }
    Property Value
    Type Description
    Double
    | Improve this Doc View Source

    WindowSize

    Declaration
    public int WindowSize { get; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    WindowWeights

    Declaration
    public double[] WindowWeights { get; }
    Property Value
    Type Description
    Double[]

    Methods

    | Improve this Doc View Source

    Gauss(Double)

    Declaration
    public static FFT.WindowFunc Gauss(double sigma)
    Parameters
    Type Name Description
    Double sigma
    Returns
    Type Description
    FFT.WindowFunc
    | 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
    Type Description
    FFT.WindowFunc

    FFT.WindowFunc.

    | 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
    Type Description
    Double[]
    | Improve this Doc View Source

    Invoke(Double[], Int32)

    Declaration
    public double[] Invoke(double[] data, int offset)
    Parameters
    Type Name Description
    Double[] data
    Int32 offset
    Returns
    Type Description
    Double[]
    | Improve this Doc View Source

    InvokeDotNetFFT(Double[])

    This .NET FFT library was downloaded from http://www.mathdotnet.com/Iridium.aspx The documentation and various examples of code are available at http://www.mathdotnet.com/doc/IridiumFFT.ashx WARNING: THIS METHOD HAS NOT BEEN RECENTLY TESTED.

    Declaration
    public double[] InvokeDotNetFFT(double[] data)
    Parameters
    Type Name Description
    Double[] data
    Returns
    Type Description
    Double[]

    Extension Methods

    ObjectExtensions.NotNull(Object)
    ObjectExtensions.AsArray<T>(T)
    ObjectExtensions.AsList<T>(T)
    ObjectExtensions.Wrap<T>(T)
    SystemExtensions.BinarySerialize(Object)
    ConfigFileExtensions.NotNull(Object, FileInfo, String, String)
    ConfigFileExtensions.ValidateNotNull(Object, String, String)
    ConfigFileExtensions.ValidateLessThan<T>(Object, Nullable<T>, String, Nullable<T>, String, String)
    ExtensionsXml.SerializeObject<T>(T)
    • Improve this Doc
    • View Source
    In This Article
    Generated by DocFX AP docs version: 21.7.0.4-master-e26127a50d7bd7472d47288f10e61014fb981f7f-DIRTY-CI:144 Back to top