28 template <
class T,
class VECTOR>
29 T
interpolate(
const T &
x,
const VECTOR &ys,
const T &x0,
const T &x1);
42 template <
typename NUMTYPE,
class VECTORLIKE>
43 NUMTYPE
spline(
const NUMTYPE
t,
const VECTORLIKE &
x,
const VECTORLIKE &
y,
bool wrap2pi =
false);
52 template <
typename NUMTYPE,
class VECTORLIKE,
int NUM_POINTS = Eigen::Dynamic>
60 template <
class VECTORLIKE1,
class VECTORLIKE2,
class VECTORLIKE3,
int NUM_POINTS = Eigen::Dynamic>
61 void leastSquareLinearFit(
const VECTORLIKE1 &ts,VECTORLIKE2 &outs,
const VECTORLIKE3 &
x,
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 BASE_IMPEXP 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).