iirfiltsos_cccf

Variants: iirfiltsos_cccf, iirfiltsos_crcf, iirfiltsos_rrrf

Infinite impulse response filter primitive using second-order sections

Public Functions

iirfiltsos_cccf iirfiltsos_cccf_create(float complex * _b, float complex * _a)
iirfiltsos_cccf iirfiltsos_cccf_copy(iirfiltsos_cccf _q)
int iirfiltsos_cccf_set_coefficients(iirfiltsos_cccf _q, float complex * _b, float complex * _a)
int iirfiltsos_cccf_destroy(iirfiltsos_cccf _q)
int iirfiltsos_cccf_print(iirfiltsos_cccf _q)
int iirfiltsos_cccf_reset(iirfiltsos_cccf _q)
int iirfiltsos_cccf_execute(iirfiltsos_cccf _q, float complex _x, float complex * _y)
int iirfiltsos_cccf_execute_df1(iirfiltsos_cccf _q, float complex _x, float complex * _y)
int iirfiltsos_cccf_execute_df2(iirfiltsos_cccf _q, float complex _x, float complex * _y)
float iirfiltsos_cccf_groupdelay(iirfiltsos_cccf _q, float _fc)

Interfaces

iirfiltsos_cccf iirfiltsos_cccf_create(float complex * _b, float complex * _a)

create 2nd-order infinite impulse response filter

  • _b : feed-forward coefficients, shape: (_3, 1)
  • _a : feed-back coefficients, shape: (_3, 1)

iirfiltsos_cccf iirfiltsos_cccf_copy(iirfiltsos_cccf _q)

Copy object including all internal objects and state

int iirfiltsos_cccf_set_coefficients(iirfiltsos_cccf _q, float complex * _b, float complex * _a)

explicitly set 2nd-order IIR filter coefficients

  • _q : iirfiltsos object
  • _b : feed-forward coefficients, shape: (3, 1)
  • _a : feed-back coefficients, shape: (3, 1)

int iirfiltsos_cccf_destroy(iirfiltsos_cccf _q)

destroy iirfiltsos object, freeing all internal memory

int iirfiltsos_cccf_print(iirfiltsos_cccf _q)

print iirfiltsos object properties to stdout

int iirfiltsos_cccf_reset(iirfiltsos_cccf _q)

clear/reset iirfiltsos object internals

int iirfiltsos_cccf_execute(iirfiltsos_cccf _q, float complex _x, float complex * _y)

compute filter output

  • _q : iirfiltsos object
  • _x : input sample
  • _y : output sample pointer

int iirfiltsos_cccf_execute_df1(iirfiltsos_cccf _q, float complex _x, float complex * _y)

compute filter output, direct-form I method

  • _q : iirfiltsos object
  • _x : input sample
  • _y : output sample pointer

int iirfiltsos_cccf_execute_df2(iirfiltsos_cccf _q, float complex _x, float complex * _y)

compute filter output, direct-form II method

  • _q : iirfiltsos object
  • _x : input sample
  • _y : output sample pointer

float iirfiltsos_cccf_groupdelay(iirfiltsos_cccf _q, float _fc)

compute and return group delay of filter object

  • _q : filter object
  • _fc : frequency to evaluate