bionet.utils.signal_extras.remezord

bionet.utils.signal_extras.remezord(freqs, amps, rips, Hz=1, alg='ichige')

Calculate the parameters required by the Remez exchange algorithm to construct a finite impulse response (FIR) filter that approximately meets the specified design.

Parameters:

freqs : array_like of floats

A monotonic sequence of band edges specified in Hertz. All elements must be non-negative and less than 1/2 the sampling frequency as given by the Hz parameter.

amps : array_like of floats

A sequence containing the amplitudes of the signal to be filtered over the various bands.

rips : array_like of floats

A sequence specifying the maximum ripples of each band.

alg : {‘herrmann’, ‘kaiser’, ‘ichige’}

Filter length approximation algorithm.

Returns:

numtaps : int

Desired number of filter taps.

bands : ndarray of floats

A monotonic sequence containing the band edges.

amps : ndarray of floats

Desired gain for each band region.

weights : ndarray of floats

Filter design weights.

See also

scipy.signal.remez