dsp-0.2.4: Haskell Digital Signal Processing

Copyright(c) Matthew Donadio 2003
LicenseGPL
Maintainerm.p.donadio@ieee.org
Stabilityexperimental
Portabilityportable
Safe HaskellSafe
LanguageHaskell98

DSP.Filter.FIR.FIR

Description

Finite Impuse Response filtering functions

Synopsis

Documentation

fir Source #

Arguments

:: (Num a, Eq a) 
=> Array Int a

h[n]

-> [a]

x[n]

-> [a]

y[n]

Implements the following function, which is a FIR filter

y[n] = sum(k=0,M) h[k]*x[n-k]

We implement the fir function with five helper functions, depending on the type of the filter. In the following functions, we use the O&S convention that m is the order of the filter, which is equal to the number of taps minus one.