SignalProcessing

public struct SignalProcessing

Static namepsace for signal processing functions.

  • Find the root mean squared of a frame buffer of samples.

    Declaration

    Swift

    public static func rms(_ frame: Data, _ dataElements: Array<Int16>) -> Float

    Parameters

    frame

    Frame of samples.

    dataElements

    Preallocated array of data elements in the frame.

    Return Value

    The RMS of the frame.

  • Convenience enum for Fast Fourier Transform window types.

    See more

    Declaration

    Swift

    public enum FFTWindowType : String
  • Convenience function to find the window of a FFT.

    Declaration

    Swift

    public static func fftWindowDispatch(windowType: FFTWindowType, windowLength: Int) -> Array<Float>

    Parameters

    windowType

    The FFT window type.

    windowLength

    The size of the window.

  • Implementation of the Hann smoothing function algorithm.

    Declaration

    Swift

    public static func hannWindow(_ length: Int) -> Array<Float>

    Parameters

    length

    The size of the window to find.

    Return Value

    The Hann window.