STIRA
0.1
|
#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... | |
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
stira::common::MonotonicCubicSplineInterpolator::MonotonicCubicSplineInterpolator | ( | std::vector< std::pair< double, double > > | dataPoints | ) |
constructor
dataPoints | input data points |
References stira::common::dataRow::x, and stira::common::dataRow::y.
double stira::common::MonotonicCubicSplineInterpolator::Interpolate | ( | double | x | ) |
actually interpolate for a given value
x | the value for which to interpolate |
Referenced by stira::imagetools::FractalGenerator::GetMathWidth().