generate a taps array for a Butterworth infinite impulse response filter - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Science and Engineering : Signal Processing : Filtering : SignalProcessing/GenerateButterworthTaps

SignalProcessing[GenerateButterworthTaps] - generate a taps array for a Butterworth infinite impulse response filter

SignalProcessing[GenerateChebyshev1Taps] - generate a taps array for a Chebyshev Type 1 infinite impulse response filter

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

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( n, 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 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

0.004824343357716260.01929737343086500.02894606014629760.01929737343086500.004824343357716261.2.369513007182042.313988414415881.054665405878570.187379492368185

(1)

C:=Array1..10&comma;&apos;datatype&apos;&equals;&apos;float&apos;8&comma;&apos;order&apos;&equals;&apos;C_order&apos;&colon;

GenerateButterworthTaps4&comma;0.1&comma;&apos;container&apos;&equals;C

0.004824343357716260.01929737343086500.02894606014629760.01929737343086500.004824343357716261.2.369513007182042.313988414415881.054665405878570.187379492368185

(2)

C

0.004824343357716260.01929737343086500.02894606014629760.01929737343086500.004824343357716261.2.369513007182042.313988414415881.054665405878570.187379492368185

(3)

GenerateButterworthTaps9&comma;3001000&comma;&apos;filtertype&apos;&equals;highpass

1 .. 20 ArrayData Type: float8Storage: rectangularOrder: C_order

(4)

GenerateChebyshev1Taps4&comma;0.2&comma;3

0.01555673233576570.06222692934306290.09334039401459440.06222692934306290.01555673233576571.1.932669946272362.255396337626811.456234178498590.485099283078791

(5)

C:=Array1..10&comma;&apos;datatype&apos;&equals;&apos;float&apos;8&comma;&apos;order&apos;&equals;&apos;C_order&apos;&colon;

GenerateChebyshev1Taps4&comma;0.2&comma;3&comma;&apos;container&apos;&equals;C

0.01555673233576570.06222692934306290.09334039401459440.06222692934306290.01555673233576571.1.932669946272362.255396337626811.456234178498590.485099283078791

(6)

C

0.01555673233576570.06222692934306290.09334039401459440.06222692934306290.01555673233576571.1.932669946272362.255396337626811.456234178498590.485099283078791

(7)

GenerateChebyshev1Taps5&comma;0.4&comma;15&comma;&apos;filtertype&apos;&equals;highpass

1 .. 12 ArrayData Type: float8Storage: rectangularOrder: C_order

(8)

See Also

SignalProcessing[GenerateFiniteImpulseResponseFilterTaps], SignalProcessing[InfiniteImpulseResponseFilter]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam