30 template <
class T,
class VECTOR>
31 T
interpolate(
const T&
x,
const VECTOR& ys,
const T& x0,
const T& x1);
40 const double x,
const double x0,
const double y0,
const double x1,
41 const double y1,
bool wrap2pi =
false);
50 template <
typename NUMTYPE,
class VECTORLIKE>
52 const NUMTYPE
t,
const VECTORLIKE&
x,
const VECTORLIKE&
y,
53 bool wrap2pi =
false);
65 template <
typename NUMTYPE,
class VECTORLIKE,
int NUM_POINTS = Eigen::Dynamic>
67 const NUMTYPE
t,
const VECTORLIKE&
x,
const VECTORLIKE&
y,
68 bool wrap2pi =
false);
78 template <
class VECTORLIKE1,
class VECTORLIKE2,
class VECTORLIKE3,
79 int NUM_POINTS = Eigen::Dynamic>
81 const VECTORLIKE1& ts, VECTORLIKE2& outs,
const VECTORLIKE3&
x,
82 const VECTORLIKE3&
y,
bool wrap2pi =
false);
NUMTYPE leastSquareLinearFit(const NUMTYPE t, const VECTORLIKE &x, const VECTORLIKE &y, bool wrap2pi=false)
Interpolates or extrapolates using a least-square linear fit of the set of values "x" and "y"...
T 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 approximat...
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
NUMTYPE 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 tw...
double interpolate2points(const double x, const double x0, const double y0, const double x1, const double y1, bool wrap2pi=false)
Linear interpolation/extrapolation: evaluates at "x" the line (x0,y0)-(x1,y1).