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.Approximation.Chebyshev

Description

Function approximation using Chebyshev polynomials

 f(x) = ( sum (k=0..N-1) c_k * T_k(x) ) - 0.5 * c_0

over the interval [a,b]

Reference: NRiC

Synopsis

Documentation

cheby_approx Source #

Arguments

:: (Double -> Double)

f(x)

-> Double

a

-> Double

b

-> Int

N

-> [Double]

c_n

Calculates the Chebyshev approximation to f(x) over [a,b]

cheby_eval Source #

Arguments

:: [Double]

c_n

-> Double

a

-> Double

b

-> Double

x

-> Double

f(x)

Evaluates the Chebyshev approximation to f(x) over [a,b] at x