Safe Haskell | None |
---|---|

Language | Haskell98 |

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

# 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.