GenerateButterworthTaps - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


SignalProcessing

  

GenerateButterworthTaps

  

generate a taps array for a Butterworth infinite impulse response filter

  

GenerateChebyshev1Taps

  

generate a taps array for a Chebyshev Type 1 infinite impulse response filter

 

Calling Sequence

Parameters

Options

Description

Thread Safety

Examples

Compatibility

Calling Sequence

GenerateButterworthTaps( order, freq )

GenerateChebyshev1Taps( order, freq, ripple )

Parameters

order

-

integer[1..12], order of the filter to generate

freq

-

realcons, the cutoff frequency for a low-pass or high-pass filter; f must satisfy 0 < f and f < 1/2.

ripple

-

realcons, ripple in the pass band for Chebyshev1 filters

Options

• 

filtertype : "lowpass" or "highpass", the type of filter (can also be specified as a name)

• 

normalize : truefalse, whether to normalize

• 

container : Array, predefined Array for holding the result

Description

• 

The GenerateButterworthTaps( order, freq ) command generates a taps array for an order order Butterworth filter with cutoff frequency freq.  The resulting taps array may be used with the command InfiniteImpulseResponseFilter to effect filtering operations on a sample.

• 

The GenerateChebyshev1Taps( order, freq, ripple ) command generates a taps array for an order order Chebyshev1 filter with cutoff frequency freq.  The resulting array may be used with the command InfiniteImpulseResponseFilter to effect filtering operations on a sample.

• 

For both commands, the resulting taps array has 2*(order + 1) elements.

• 

The cutoff frequency freq must be strictly positive and less than 12.

• 

The ripple argument specifies the possible ripple in the pass band for Chebyshev1 filters.  Its value must be positive and less than 29.

• 

Specify the type of filter with the filtertype option.  It can take either of the values "lowpass" and "highpass".  The default value is "lowpass". The values can also be specified as the names lowpass or highpass.

• 

The normalize option specifies whether to normalize the filter coefficients produced, and can be either of the values true or false.  The default is normalize = true.

• 

If the container=C option is provided, then the results are put into C and C is returned. With this option, no additional memory is allocated to store the result. The container must be an Array of size 2*(order+1) having datatype float[8].

Thread Safety

• 

The SignalProcessing[GenerateButterworthTaps] and SignalProcessing[GenerateChebyshev1Taps] commands are thread-safe as of Maple 17.

• 

For more information on thread safety, see index/threadsafe.

Examples

withSignalProcessing&colon;

GenerateButterworthTaps4&comma;0.1

(1)

CArray1..10&comma;datatype=float8&comma;order=C_order&colon;

GenerateButterworthTaps4&comma;0.1&comma;container=C

(2)

C

(3)

GenerateButterworthTaps9&comma;3001000&comma;filtertype=highpass

(4)

GenerateChebyshev1Taps4&comma;0.2&comma;3

(5)

CArray1..10&comma;datatype=float8&comma;order=C_order&colon;

GenerateChebyshev1Taps4&comma;0.2&comma;3&comma;container=C

(6)

C

(7)

GenerateChebyshev1Taps5&comma;0.4&comma;15&comma;filtertype=highpass

(8)

Compatibility

• 

The SignalProcessing[GenerateButterworthTaps] and SignalProcessing[GenerateChebyshev1Taps] commands were introduced in Maple 17.

• 

For more information on Maple 17 changes, see Updates in Maple 17.

See Also

SignalProcessing[GenerateFiniteImpulseResponseFilterTaps]

SignalProcessing[InfiniteImpulseResponseFilter]