<< fir2 FOSSEE Signal Processing Toolbox firtype >>

FOSSEE Signal Processing Toolbox >> FOSSEE Signal Processing Toolbox > firpmord

firpmord

Parks-McClennan optimal FIR filter order estimation

Calling Sequence

Parameters

f:

double - positive - vector

a:

double - positive - vector

dev:

double - positive - vector

n:

int - scalar

fo:

double - positive - vector

ao:

double - positive - vector

w:

double - vector

Examples

[1] A low-pass filter
f = [1500 2000];        // frequency edges for bands
a = [1 0];              // desired amplitude for each band
dev = [0.01 0.1];       // Acceptable deviation for each band
fs = 8000;              // Sampling frequency
[n,fo,ao,w] = firpmord(f,a,dev,fs);

[2] A bandstop filter
f = [1000 1800 2400 3000];
a = [1 0 0.5];
dev = [0.01 0.1 0.03];
fs = 8000;
[n,fo,ao,w] = firpmord(f,a,dev,fs);

References
[1] Rabiner, Lawrence R., and Bernard Gold. "Theory and application of
digital signal processing." Englewood Cliffs, NJ, Prentice-Hall, Inc.,
1975. 777 p. 156-7 (1975).
[2] Rabiner, Lawrence R., and Otto Herrmann. "The predictability of certain
optimum finite-impulse-response digital filters." Circuit Theory,
IEEE Transactions on 20.4 (1973): 401-408.

Authors

See also


Report an issue
<< fir2 FOSSEE Signal Processing Toolbox firtype >>