interpolation-0.0: piecewise linear and cubic Hermite interpolation

Safe HaskellSafe-Inferred

Numeric.Interpolation.NodeList

Synopsis

Documentation

data T x y Source

Constructors

Interval 
Node (x, y) (T x y) (T x y) 

Instances

(Eq x, Eq y) => Eq (T x y) 
(Ord x, Ord y) => Ord (T x y) 
(Show x, Show y) => Show (T x y) 

fromList :: [(x, y)] -> T x ySource

list must be sorted with respect to first element

toList :: T x y -> [(x, y)]Source

singleton :: x -> y -> T x ySource

lookup :: Ord x => T x y -> x -> (Maybe (x, y), Maybe (x, y))Source