dsp-0.2.5.1: Haskell Digital Signal Processing

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

Numeric.Transform.Fourier.Goertzel

Description

This is an implementation of Goertzel's algorithm, which computes one bin of a DFT. A description can be found in Oppenheim and Schafer's Discrete Time Signal Processing, pp 585-587.

Synopsis

Documentation

cgoertzel Source #

Arguments

:: (RealFloat a, Ix b, Integral b) 
=> Array b (Complex a)

x[n]

-> b

k

-> Complex a

X[k]

Goertzel's algorithm for complex inputs

cgoertzel_power Source #

Arguments

:: (RealFloat a, Ix b, Integral b) 
=> Array b (Complex a)

x[n]

-> b

k

-> a

|X[k]|^2

Power via Goertzel's algorithm for complex inputs

rgoertzel Source #

Arguments

:: (RealFloat a, Ix b, Integral b) 
=> Array b a

x[n]

-> b

k

-> Complex a

X[k]

Goertzel's algorithm for real inputs

rgoertzel_power Source #

Arguments

:: (RealFloat a, Ix b, Integral b) 
=> Array b a

x[n]

-> b

k

-> a

|X[k]|^2

Power via Goertzel's algorithm for real inputs