Frequency response of a CIC filter.

Espace de nom : tsd::filtrage

Prototype

Vecf cic_freq(const CICConfig &config, const Vecf &f)

Paramètres

configParamètres principaux (voir CICConfig)
fnormalized frequency, between -0.5 and 0.5 (can be a 1d vector)

Retourne

mag Output magnitude, computed at each frequency point

Description

This function computes the CIC frequency response (in magnitude) at the specified normalized frequencies \(f_k\). The magnitude is computed as: \[ \left|H(f)\right| = \left|\frac{\sin(RM \pi f)}{RM\sin \pi f}\right|^N \]

Example

soit R = 4, N = 8, M = 1;
soit f = linspace(0,0.5,512);
soit mag = cic_freq({R,N,M},f);
Figure f;
f.plot(f,mag2db(mag));

Voir aussi

cic_analyse()