10 #ifndef SRC_INCLUDE_SMASH_INTERPOLATION2D_H_
11 #define SRC_INCLUDE_SMASH_INTERPOLATION2D_H_
15 #include "gsl/gsl_spline2d.h"
35 const std::vector<double>& y,
36 const std::vector<double>& z);
Represent a bicubic spline interpolation.
double first_y_
First y value.
double last_y_
Last y value.
double last_x_
Last x value.
InterpolateData2DSpline(const std::vector< double > &x, const std::vector< double > &y, const std::vector< double > &z)
Interpolate function f given discrete samples f(x_i, y_i) = z_i.
double operator()(double xi, double yi) const
Calculate bicubic interpolation for given x and y.
gsl_interp_accel * xacc_
GSL iterator for interpolation lookups in x direction.
~InterpolateData2DSpline()
Destructor.
gsl_spline2d * spline_
GSL spline in 2D.
double first_x_
First x value.
gsl_interp_accel * yacc_
GSL iterator for interpolation lookupin y direction.