STIRA  0.1
Public Member Functions | List of all members
stira::common::MonotonicCubicSplineInterpolator Class Reference

#include <MonotonicCubicSplineInterpolator.h>

Public Member Functions

 MonotonicCubicSplineInterpolator (std::vector< std::pair< double, double > > dataPoints)
 constructor More...
 
double Interpolate (double x)
 actually interpolate for a given value More...
 

Detailed Description

Class for monotone cubic spline interpolation Ref: https://en.wikipedia.org/wiki/Monotone_cubic_interpolation http://math.stackexchange.com/questions/45218/implementation-of-monotone-cubic-interpolation

Constructor & Destructor Documentation

stira::common::MonotonicCubicSplineInterpolator::MonotonicCubicSplineInterpolator ( std::vector< std::pair< double, double > >  dataPoints)

constructor

Parameters
dataPointsinput data points

References stira::common::dataRow::x, and stira::common::dataRow::y.

Member Function Documentation

double stira::common::MonotonicCubicSplineInterpolator::Interpolate ( double  x)

actually interpolate for a given value

Parameters
xthe value for which to interpolate

Referenced by stira::imagetools::FractalGenerator::GetMathWidth().


The documentation for this class was generated from the following files: