interpolation-0.1: piecewise linear and cubic Hermite interpolation

Safe HaskellSafe-Inferred
LanguageHaskell98

Numeric.Interpolation.NodeList

Synopsis

Documentation

data T x y Source

Constructors

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

Instances

Functor (T x) 
Foldable (T x) 
Traversable (T x) 
(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 y Source

list must be sorted with respect to first element

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

singleton :: x -> y -> T x y Source

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