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>) -> FloatParameters
frameFrame of samples.
dataElementsPreallocated array of data elements in the frame.
Return Value
The RMS of the frame.
-
Convenience enum for Fast Fourier Transform window types.
See moreDeclaration
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
windowTypeThe FFT window type.
windowLengthThe size of the window.
-
Implementation of the Hann smoothing function algorithm.
Declaration
Swift
public static func hannWindow(_ length: Int) -> Array<Float>Parameters
lengthThe size of the window to find.
Return Value
The Hann window.
View on GitHub
SignalProcessing Structure Reference