SignalProcessing - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

SignalProcessing

  

GenerateFiniteImpulseResponseFilterTaps

  

generate a taps array for a finite impulse response filter

 

Calling Sequence

Parameters

Options

Description

Thread Safety

Examples

Compatibility

Calling Sequence

GenerateFiniteImpulseResponseFilterTaps( n, freq )

Parameters

n

-

posint, the size of the resulting taps Array

freq

-

realcons or [realcons,realcons]}, the frequency for a low-pass or high-pass filter, or a pair [lowfreq, highfreq] of frequencies for a band-pass or band-stop filter. Frequencies f must satisfy 0 < f and f < 1/2.

Options

• 

filtertype : string or name, the type of filter

• 

window : string or name, the window type

• 

normalize : truefalse, whether to normalize

• 

container : Array, predefined Array for holding the result

Description

• 

The GenerateFiniteImpulseResponseFilterTaps( n, freq ) command generates a taps array for a finite impulse response filter.  The resulting array may be used with the command FiniteImpulseResponseFilter to effect filtering operations on a sample.

• 

For a low-pass or high-pass filter, a single frequency freq is required. It must be strictly positive and less than 12.

• 

For a band-pass or band-stop filter, a pair [lowfreq, highfreq] of low and high frequencies are required.  Each frequency must be positive and less than 12; they must additionally satisfy lowfreq<highfreq.

• 

Specify the type of filter with the filtertype option.  It can take any of the values "lowpass", "highpass", "bandpass" and "bandstop". The option values can be given as a name or as a string.

• 

The type of window to use is indicated by the window option.  It can take any of the following values: "Bartlett", "Blackman", "Hamming" and "Hann". The option values can be given as a name or as a string.

• 

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 n having datatype float[8].

Thread Safety

• 

The SignalProcessing[GenerateFiniteImpulseResponseFilterTaps] command is thread-safe as of Maple 17.

• 

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

Examples

withSignalProcessing&colon;

GenerateFiniteImpulseResponseFilterTaps8&comma;13

0.0.03571428572508224.3185754957817610-110.5357142856818960.5357142856818964.3185754957817610-110.03571428572508220.

(1)

GenerateFiniteImpulseResponseFilterTaps8&comma;13&comma;&apos;:-normalize&apos;&equals;true

0.0.03571428572508224.3185754957817610-110.5357142856818960.5357142856818964.3185754957817610-110.03571428572508220.

(2)

CArray1..8&comma;&apos;datatype&apos;&equals;&apos;float&apos;8&comma;&apos;order&apos;&equals;&apos;C_order&apos;&colon;

GenerateFiniteImpulseResponseFilterTaps8&comma;13&comma;&apos;:-container&apos;&equals;C

0.0.03571428572508224.3185754957817610-110.5357142856818960.5357142856818964.3185754957817610-110.03571428572508220.

(3)

C

0.0.03571428572508224.3185754957817610-110.5357142856818960.5357142856818964.3185754957817610-110.03571428572508220.

(4)

GenerateFiniteImpulseResponseFilterTaps8&comma;13&comma;&apos;:-filtertype&apos;&equals;highpass

0.0.02205882350764140.1470588235176440.3308823529747150.3308823529747150.1470588235176440.02205882350764140.

(5)

GenerateFiniteImpulseResponseFilterTaps8&comma;0.2&comma;0.4&comma;&apos;:-filtertype&apos;&equals;bandstop&comma;&apos;:-window&apos;&equals;Hann

0.0.02501254691992840.07293693000045440.4020505230796170.4020505230796170.07293693000045440.02501254691992840.

(6)

Compatibility

• 

The SignalProcessing[GenerateFiniteImpulseResponseFilterTaps] command was introduced in Maple 17.

• 

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

See Also

SignalProcessing[FiniteImpulseResponseFilter]

SignalProcessing[GenerateButterworthTaps]

SignalProcessing[GenerateChebyshev1Taps]

 


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