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);
63 typename NUMTYPE,
class VECTORLIKE,
int NUM_POINTS = -1 >
65 const NUMTYPE t,
const VECTORLIKE& x,
const VECTORLIKE& y,
66 bool wrap2pi =
false);
78 class VECTORLIKE1,
class VECTORLIKE2,
class VECTORLIKE3,
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 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).