SignalProcessing
Filter
filter a signal with a finite impulse response filter
Calling Sequence
Parameters
Options
Description
Thread Safety
Examples
Compatibility
Filter( A, a, b )
A
-
Array of real numeric values; the signal to filter
a
Array of real numeric values; the Array of IIR coefficients
b
(optional) Array of real numeric values; the Array of FIR coefficients
container : Array, predefined Array for holding results
The Filter( A, a, b ) command filters the signal (sample) in the array A using the IIR coefficients in the array a and the FIR coefficients in the array b. If b is omitted, no FIR filter is applied (there is only a single coefficient, 1).
Before the code performing the computation runs, the input Arrays are converted to datatype float[8] if they do not have that datatype already. For this reason, it is most efficient if the input Arrays have this datatype beforehand.
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 equal to the size of A and having datatype float[8].
The SignalProcessing[Filter] command is thread-safe as of Maple 17.
For more information on thread safety, see index/threadsafe.
with⁡SignalProcessing:
with⁡plots:
A≔GenerateTone⁡128,1,0.05,3.0:
a≔Array⁡1..3,13,13,13,datatype=float8,order=C_order:
b≔Array⁡1..1,1,datatype=float8,order=C_order:
B≔Filter⁡A,a,b:
display⁡Array⁡SignalPlot⁡A,SignalPlot⁡B
The SignalProcessing[Filter] command was introduced in Maple 17.
For more information on Maple 17 changes, see Updates in Maple 17.
See Also
SignalProcessing[FiniteImpulseResponseFilter]
SignalProcessing[InfiniteImpulseResponseFilter]
Download Help Document