interpolation-0.1: piecewise linear and cubic Hermite interpolation

Safe HaskellSafe-Inferred
LanguageHaskell98

Numeric.Interpolation.Basis.Compact

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.