ocmsp_impz_sos

 

Description

Impulse response of digital filter, calculating by second-order-section.

Syntax

int ocmsp_impz_sos( double * ph, double * pt, UINT n, const double * pSOS, UINT nsec, double gain, double fs = 1.0 )

Parameters

ph
[output] impulse response, size n
pt
[output] sample times, size n
n
[input] size of impulse response
pSOS
[input] second-order section filter matrix, size nsec-by-6
nsec
[input] number of sections
gain
[input] overall gain of filter
fs
[input][optional] sample frequency, the samples are spaced 1/fs unit apart. Default 1

Return

Return OE_NOERROR if succeed, otherwise, non-zero error code is returned (OE_NULL_POINTER, OE_INVALID_SIZE or OE_BAD_PARAM)

Examples

Remark

See Also

ocmsp_impz

Header to Included

ocmsp.h

Reference