Summary
Estimate the length of an optimal FIR filter.
Unit
OptimalFir
Declaration
Function RemezFirLength(const W: array of TSample; Ripple: TSample; FilterType: TFilterType; FS: TSample = 2): integer;
Description
Returns the length of the equiripple FIR filter, design with Parks-McClellan algorithm where the maximum allowed ripple of the pass band is Ripple and sampling frequency is FS. The requested stopband attenuation is estimated as 20*Log10(Ripple). The W array holds two or four parameters: the start and the stop of the transition bands, relative to the specified sampling frequency. The maximum filter order is limited with MaxFirLength global variable.
This routine is a simplified version of RemezLength routine.
Categories
FIR filter length estimation| Copyright 2008 Dew Research |
http://www.dewresearch.com