firpmord
Estimation of the optimal FIR filter order by the Parks-McClellan method.
| Library |
|
Syntax
Function call
-
_ = firpmord(_, fs)— the sampling rate is also setfs. Meaningfsthe default value is2Hz, which corresponds to the Nyquist frequency1Hz. You can specify band boundaries that are scaled according to the sampling rate of a particular application. This syntax can be used with any of the previous input options.
Arguments
Input arguments
# f — the boundaries of the frequency range
+
vector of real numbers
Details
The boundaries of the frequency range, defined as a vector of real numbers. The argument must be in the range , where — Nyquist frequency. The number of elements of a vector is always a multiple 2. The frequencies should be arranged in ascending order.
#
fs —
sampling
rate
2 Hz (by default) | real scalar
Details
The sampling rate, set as a real scalar.
Output arguments
# fo — normalized frequency values
+
vector of real numbers
Details
Normalized frequency values returned as a vector of real numbers. The argument must be in the range [0, 1], where 1 corresponds to the Nyquist frequency. The number of elements of a vector is always a multiple 2. The frequencies should be arranged in ascending order.
# ao — amplitude response
+
vector of real numbers
Details
The amplitude characteristic returned as a vector of real numbers.
# c — FIR filter parameters
+
array of cells
Details
FIR filter parameters returned as an array of cells.
Algorithms
Literature
-
Rabiner, Lawrence R., and Otto Herrmann. “The Predictability of Certain Optimum Finite-Impulse-Response Digital Filters.” IEEE® Transactions on Circuit Theory. Vol. 20, Number 4, 1973, pp. 401–408.
-
Rabiner, Lawrence R., and Bernard Gold. Theory and Application of Digital Signal Processing. Englewood Cliffs, NJ: Prentice-Hall, 1975, pp. 156–157.