You are here: Symbol Reference > OptimalFir Namespace > Functions > OptimalFir.RemezFirLength Function
DSP Master VCL
ContentsIndex
PreviousUpNext
OptimalFir.RemezFirLength Function

Estimate the length of an optimal FIR filter.

Pascal
function RemezFirLength(const W: array of Double; Ripple: Double; FilterType: TFilterType; FS: Double = 2): integer; overload;

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. 

Note This routine is a simplified version of RemezLength routine.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!