1 #ifndef CARMA_SERVICES_INTERPOLATOR_H
2 #define CARMA_SERVICES_INTERPOLATOR_H
9 #include <gsl/gsl_errno.h>
10 #include <gsl/gsl_interp.h>
11 #include <gsl/gsl_spline.h>
32 const ::std::vector<double> & xvalue,
33 const ::std::vector<double> & yvalue,
34 const interpolationType type );
36 virtual ~Interpolator ( );
43 double evaluate(
double x );
47 void freeAllocations();
48 void freeGslAllocations();
49 void freeDoubleAllocations();
57 void setInterpType( interpolationType type );
60 ::gsl_interp_accel * acc_;
61 ::gsl_interp * interp_;
62 ::gsl_spline * spline_;
65 ::std::vector<double> xval_;
66 ::std::vector<double> yval_;
71 interpolationType interpType_;
78 #endif //CARMA_SERVICES_INTERPOLATOR_H
Various type definitions for services classes.