22#include <gsl/gsl_interp.h>
23#include <gsl/gsl_spline.h>
83 const std::vector<float> &y,
118 gsl_interp_accel *accel_;
119 std::vector<double> x_data;
120 std::vector<double> y_data;
A class for performing 1D interpolation using the GSL library.
Definition interpolate1d.hpp:65
float interpolate(float x) const
Interpolates the value at the specified x coordinate.
Definition interpolate1d.cpp:104
float operator()(float x) const
Function call operator for performing interpolation.
Definition interpolate1d.cpp:99
~Interpolator1D()
Destructor for Interpolator1D.
Definition interpolate1d.cpp:93
Definition algebra.hpp:28
InterpolationMethod1D
Enumeration of the available 1D interpolation methods.
Definition interpolate1d.hpp:36
@ CUBIC
Cubic spline interpolation.
Definition interpolate1d.hpp:39
@ LINEAR
Linear interpolation.
Definition interpolate1d.hpp:41
@ POLYNOMIAL
Polynomial interpolation.
Definition interpolate1d.hpp:42
@ AKIMA
Akima interpolation.
Definition interpolate1d.hpp:37
@ CUBIC_PERIODIC
Cubic spline periodic interpolation.
Definition interpolate1d.hpp:40
@ STEFFEN
Steffen interpolation (monotonic)
Definition interpolate1d.hpp:43
@ AKIMA_PERIODIC
Akima periodic interpolation.
Definition interpolate1d.hpp:38