design_dc_blocker

Transfert function for a DC blocker.

Namespace: dsp::filter

Prototype

FRat<float> design_dc_blocker(float fc)

Parameters

fcNormalized cut-off frequency (0 - 0.5)

Description

Computes the following transfert function: \[ H(z) = \frac{1 - z^{-1}}{1 - \alpha \cdot z^{-1}} \] With \[ \alpha = \frac{\sqrt{3} - 2 \sin(\pi f_c)}{\sin(\pi f_c) + \sqrt{3} \cos(\pi f_c)} \]

Example

    soit fc = 0.01f;
    soit h = design_bloqueur_dc(fc);
    export_filtre_figs(h, "./res/filtres/dc/dc");


Bibliography

Stein, Digital signal processing, 2000, page 301

See also

filter_dc()