kaiser_param
Computation of the parameters of a Kaiser filter.
Namespace: dsp::filter
Prototype
tuple<float, int> kaiser_param(float atten_db, float df)
Parameters
atten_db | Attenuation in dB in the stop-band (should be a positive value). |
df | Transition bandwidth (normalized to the sampling frequency) |
Returns
\(\beta,n\)
Description
This function will compute, for a Kaiser filter, the \(\beta\) parameter and the required order for a specified attenuation and transition bandwidth.
Example
// Parameters for 60 dB of transition,
// and a transition bandwidth of one tenth of the sampling frequency.
let [β, n] = kaiser_param(60, 0.1);