dsp-0.2.3: Haskell Digital Signal Processing

Portabilityportable
Stabilityexperimental
Maintainerm.p.donadio@ieee.org
Safe HaskellSafe-Inferred

DSP.Window

Description

Commonly used window functions. Except for the Parzen window, the results of all of these look right, but I have to check them against either Matlab or my C code.

More windowing functions exist, but I have to dig through my papers to find the equations.

Synopsis

Documentation

windowSource

Arguments

:: Array Int Double

w[n]

-> Array Int Double

x[n]

-> Array Int Double

w[n] * x[n]

Applys a window, w, to a sequence x

rectangularSource

Arguments

:: Int

M

-> Array Int Double

w[n]

rectangular window

bartlettSource

Arguments

:: Int

M

-> Array Int Double

w[n]

Bartlett window

hanningSource

Arguments

:: Int

M

-> Array Int Double

w[n]

Hanning window

hammingSource

Arguments

:: Int

M

-> Array Int Double

w[n]

Hamming window

blackmanSource

Arguments

:: Int

M

-> Array Int Double

w[n]

Blackman window

kaiserSource

Arguments

:: Double

beta

-> Int

M

-> Array Int Double

w[n]

rectangular window

gen_hammingSource

Arguments

:: Double

alpha

-> Int

M

-> Array Int Double

w[n]

Generalized Hamming window

parzenSource

Arguments

:: Int

M

-> Array Int Double

w[n]

rectangular window