forsyde-shallow-3.4.0.0: ForSyDe's Haskell-embedded Domain Specific Language.

Copyright(c) ForSyDe Group KTH 2007-2008
LicenseBSD-style (see the file LICENSE)
Maintainerforsyde-dev@ict.kth.se
Stabilityexperimental
Portabilityportable
Safe HaskellSafe
LanguageHaskell98

ForSyDe.Shallow.Utility.FIR

Description

This module implements a FIR filters for the synchronous computational model.

Synopsis

Documentation

firSY :: Fractional a => Vector a -> Signal a -> Signal a Source #

The function firSY implements a FIR-filter for the synchronous computational model. All kinds of FIR-filters can now be modeled by means of firSY. The only argument needed is the list of coefficients, which is given as a vector of any size. To illustrate this, an 8-th order band pass filter is modeled as follows.

bp = firSY (vector [0.06318761339784, 0.08131651217682, 0.09562326700432, 
        0.10478344432968, 0.10793629404886, 0.10478344432968, 
        0.09562326700432, 0.08131651217682, 0.06318761339784 ])