interpolation-0.1.0.1: piecewise linear and cubic Hermite interpolation

Safe HaskellSafe
LanguageHaskell98

Numeric.Interpolation.Basis

Synopsis

Documentation

linear :: Num b => [a] -> [T a b] Source #

hermite1 :: Num b => [a] -> [T a (b, b)] Source #

cubicLinear :: Fractional a => [a] -> [T a (a, a)] Source #

Cubic interpolation where the derivative at a node is set to the slope of the two adjacent nodes.

cubicParabola :: Fractional a => [a] -> [T a (a, a)] Source #

Cubic interpolation where the derivative at a node is set to the slope of the parabola through the current and the two adjacent nodes.

coefficientsToLinear :: [a] -> [b] -> T a b Source #

coefficientsToLinear nodes coefficients creates an interpolation function for nodes, where the coefficients correspond to the basis functions constructed with Basis.linear nodes.