Clarisse 5.0 SP8 SDK  5.0.5.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
MonotoneCubicInterpolator< Scalar > Class Template Reference

Piecewise monotone cubic Hermite interpolation. More...

Public Member Functions

 MonotoneCubicInterpolator (const CoreVector< Scalar > &x, const CoreVector< Scalar > &f)
 
Scalar evaluate (Scalar x) const
 
CoreVector< Scalar > & get_fp ()
 

Detailed Description

template<typename Scalar>
class MonotoneCubicInterpolator< Scalar >

Piecewise monotone cubic Hermite interpolation.

Implements the Fritsch-Carlson algorithm (https://en.wikipedia.org/wiki/Monotone_cubic_interpolation). Interpolation is guaranteed to be $ C^1 $ and monotone on any interval where the input data is monotone.