[SciPy-user] What's "a sequence"

Robert Kern robert.kern@gmail....
Wed Apr 11 14:21:40 CDT 2007


Stef Mientki wrote:
> hello,
> 
> I'm trying to design a filter by the Remez exchange algorithm,
> but don't know how define "a sequence", like the bands parameter.
> 
>  From the help:
> remez(numtaps, bands, desired, weight=None, Hz=1, type='bandpass', 
> maxiter=25, grid_density=16)
>     Calculate the minimax optimal filter using Remez exchange algorithm.
>     Inputs:
>       numtaps -- The desired number of taps in the filter.
>       bands -- A montonic sequence containing the band edges.  All elements
>                must be non-negative and less than 1/2 the sampling frequency
>                as given by Hz.
> 
> I tried several options
> i=signal.remez(16, ([0.02,0.06]), ...
> i=signal.remez(16, [0.02,0.06], ...
> i=signal.remez(16, (0.02,0.06), ...
> 
> but they all give an error on the bands-parameter.

What error? Please always copy-and-paste the traceback.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco


More information about the SciPy-user mailing list