48 size_t size =
std::min( x.size(), y.size() );
52 fInterp->Init(size, &x.front(), &y.front() );
70 if (
this == &rhs)
return *
this;
81 size_t size =
std::min( x.size(), y.size() );
double Eval(double x) const
Return the interpolated value at point x.
static Vc_ALWAYS_INLINE int_v min(const int_v &x, const int_v &y)
bool SetData(const std::vector< double > &x, const std::vector< double > &y)
Set the data vector ( x[] and y[] ) To be efficient, the size of the data must be the same of the val...
GSLInterpolator * fInterp
double Deriv2(double x) const
double Eval(double x) const
double Deriv2(double x) const
Return the second derivative of the interpolated function at point x.
std::string Type() const
Return the type of interpolation method.
Interpolator & operator=(const Interpolator &)
Class for performing function interpolation of points.
double Integ(double a, double b) const
Return the Integral of the interpolated function over the range [a,b].
double Deriv(double x) const
std::string TypeGet() const
bool Init(unsigned int ndata, const double *x, const double *y)
Interpolation class based on GSL interpolation functions.
Type
Enumeration defining the types of interpolation methods availables.
double Deriv(double x) const
Return the derivative of the interpolated function at point x.
double Integ(double a, double b) const
Interpolator(unsigned int ndata=0, Interpolation::Type type=Interpolation::kCSPLINE)
Constructs an interpolator class from number of data points and with Interpolation::Type type...