Template Function mrpt::math::spline

Function Documentation

template<typename NUMTYPE, class VECTORLIKE>
NUMTYPE mrpt::math::spline(const NUMTYPE t, const VECTORLIKE &x, const VECTORLIKE &y, bool wrap2pi = false)

Interpolates the value of a function in a point “t” given 4 SORTED points where “t” is between the two middle points If wrap2pi is true, output “y” values are wrapped to ]-pi,pi] (It is assumed that input “y” values already are in the correct range).

Note

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