Template Function mrpt::math::interpolate

Function Documentation

template<class T, class VECTOR>
T mrpt::math::interpolate(const T &x, const VECTOR &ys, const T &x0, const T &x1)

Interpolate a data sequence “ys” ranging from “x0” to “x1” (equally spaced), to obtain the approximation of the sequence at the point “x”. If the point “x” is out of the range [x0,x1], the closest extreme “ys” value is returned.

Note

Implementation in #include <mrpt/math/interp_fit.hpp>