| Copyright | (c) Justin Le 2018 |
|---|---|
| License | BSD3 |
| Maintainer | justin@jle.im |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Numeric.EMD.Internal.Spline
Description
Internal splining functionality exported for testing purposes only. This will likely go away in future versions, so please do not depend on this!
Synopsis
- data Spline a
- data SplineEnd
- makeSpline :: forall a. (Ord a, Fractional a) => SplineEnd -> Map a a -> Maybe (Spline a)
- sampleSpline :: (Fractional a, Ord a) => Spline a -> a -> a
Documentation
End condition for spline
Constructors
| SENotAKnot | |
| SENatural |
Instances
| Eq SplineEnd Source # | |
| Ord SplineEnd Source # | |
| Show SplineEnd Source # | |
Build a cubic spline based on control points using given end conditions (not-a-knot, or natural)
sampleSpline :: (Fractional a, Ord a) => Spline a -> a -> a Source #
Sample a spline at a given point.