Function

vDSP_biquad_CreateSetupD(_:_:)

Builds a data structure that contains precalculated data for use by double-precision cascaded biquad IIR filter functions.

Declaration

func vDSP_biquad_CreateSetupD(_ __Coefficients: UnsafePointer<Double>, _ __M: vDSP_Length) -> vDSP_biquad_SetupD?

Parameters

__Coefficients

Input array of double-precision filter coefficients. Its length should be 5 times the number of sections in the biquad filter.

__M

Number of sections in the biquad filter.

Return Value

Pointer to the setup object, of type vDSP_biquad_SetupD.

Discussion

This function is the same as vDSP_biquad_CreateSetup(_:_:), except for the return type.

This function allocates memory for its own use; the allocated memory can be freed by the vDSP_biquad_DestroySetupD(_:) function.

See Also

Creating a Single-Channel Biquadratic IIR Setup

func vDSP_biquad_CreateSetup(UnsafePointer<Double>, vDSP_Length) -> vDSP_biquad_Setup?

Builds a data structure that contains precalculated data for use by the single-precision cascaded biquad IIR filter function vDSP_biquad(_:_:_:_:_:_:_:).