31 #ifndef ROOT_Math_Interpolator
32 #define ROOT_Math_Interpolator
52 class GSLInterpolator;
76 Interpolator(
unsigned int ndata = 0, Interpolation::Type type = Interpolation::kCSPLINE);
83 Interpolator(
const std::vector<double> & x,
const std::vector<double> & y, Interpolation::Type type = Interpolation::kCSPLINE);
85 virtual ~Interpolator();
89 Interpolator(
const Interpolator &);
90 Interpolator & operator = (
const Interpolator &);
99 bool SetData(
const std::vector<double> & x,
const std::vector<double> & y);
106 bool SetData(
unsigned int ndata,
const double * x,
const double * y);
111 double Eval(
double x )
const;
116 double Deriv(
double x )
const;
121 double Deriv2(
double x )
const;
126 double Integ(
double a,
double b)
const;
131 std::string Type()
const;
132 std::string TypeGet()
const;
139 GSLInterpolator * fInterp;