1 #ifndef _theplu_yat_regression_gslinterpolation_ 2 #define _theplu_yat_regression_gslinterpolation_ 29 #include <gsl/gsl_interp.h> 36 namespace regression {
158 gsl_interp_accel* accelerator_;
160 gsl_interp* interpolator_;
161 std::unique_ptr<double[]> x_;
162 std::unique_ptr<double[]> y_;
virtual ~GSLInterpolation(void)=0
The destructor.
double evaluate(double x)
Calculate the interpolated value for x.
The Department of Theoretical Physics namespace as we define it.
double evaluate_derivative2(double x)
Calculate the 2nd derivative of the interpolated function at x.
double evaluate_derivative(double x)
Calculate the derivative of the interpolated function at x.
GSLInterpolation(const gsl_interp_type *, const utility::VectorBase &x, const utility::VectorBase &y)
The default constructor.
double evaluation(void) const
The result of the latest evaluaion function call is stored and can be retrieved with this function...
This is the yat interface to GSL vector.
Definition: VectorBase.h:55
double evaluate_integral(double a, double b)
Calculate the numerical integral of the interpolated function over the range .
unsigned int min_size(void) const
This function returns the minimum number of points required by the interpolation type.
Base class for interfacing GSL interpolation.
Definition: GSLInterpolation.h:62