27 template <
class T,
class VECTOR>
28 T
interpolate(
const T&
x,
const VECTOR& ys,
const T& x0,
const T& x1);
37 const double x,
const double x0,
const double y0,
const double x1,
38 const double y1,
bool wrap2pi =
false);
47 template <
typename NUMTYPE,
class VECTORLIKE>
49 const NUMTYPE
t,
const VECTORLIKE&
x,
const VECTORLIKE&
y,
50 bool wrap2pi =
false);
62 template <
typename NUMTYPE,
class VECTORLIKE,
int NUM_POINTS = Eigen::Dynamic>
64 const NUMTYPE
t,
const VECTORLIKE&
x,
const VECTORLIKE&
y,
65 bool wrap2pi =
false);
75 template <
class VECTORLIKE1,
class VECTORLIKE2,
class VECTORLIKE3,
76 int NUM_POINTS = Eigen::Dynamic>
78 const VECTORLIKE1& ts, VECTORLIKE2& outs,
const VECTORLIKE3&
x,
79 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 base provides a set of functions for maths stuff.
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).