<< fir2 | FOSSEE_Signal_Processing_Toolbox | firtype >>

FOSSEE_Signal_Processing_Toolbox >> FOSSEE_Signal_Processing_Toolbox > firpmord

# firpmord

Parks-McClennan optimal FIR filter order estimation

### 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

    // 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)

    // 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)

### Bibliography

[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

- Ayush Baid

### See also

Report an issue
<< fir2 | FOSSEE_Signal_Processing_Toolbox | firtype >>