Go to the documentation of this file.
29 template <
class T,
class VECTOR>
30 T
interpolate(
const T&
x,
const VECTOR& ys,
const T& x0,
const T& x1);
39 const double x,
const double x0,
const double y0,
const double x1,
40 const double y1,
bool wrap2pi =
false);
49 template <
typename NUMTYPE,
class VECTORLIKE>
51 const NUMTYPE
t,
const VECTORLIKE&
x,
const VECTORLIKE&
y,
52 bool wrap2pi =
false);
64 template <
typename NUMTYPE,
class VECTORLIKE,
int NUM_POINTS = Eigen::Dynamic>
66 const NUMTYPE
t,
const VECTORLIKE&
x,
const VECTORLIKE&
y,
67 bool wrap2pi =
false);
77 template <
class VECTORLIKE1,
class VECTORLIKE2,
class VECTORLIKE3,
78 int NUM_POINTS = Eigen::Dynamic>
80 const VECTORLIKE1& ts, VECTORLIKE2& outs,
const VECTORLIKE3&
x,
81 const VECTORLIKE3&
y,
bool wrap2pi =
false);
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...
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...
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
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",...
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).
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at mié 12 jul 2023 10:03:34 CEST | |