cubicspline-0.1.2: Natural cubic spline interpolation.

Safe HaskellNone
LanguageHaskell98

Data.Algorithm.CubicSpline

Synopsis

Documentation

cubicSplineCoefficients :: [(Double, Double)] -> [PolyCos] Source

Given a list of (x,y) co-ordinates, produces a list of coefficients to cubic equations, with knots at each of the initially provided x co-ordinates. Natural cubic spline interpololation is used. See: http://en.wikipedia.org/wiki/Spline_interpolation#Interpolation_using_natural_cubic_spline.