8#include <boost/math/interpolators/barycentric_rational.hpp>
9#include <gsl/gsl_spline.h>
13 namespace Interpolation
34 Barycentric(std::vector<double> &x, std::vector<double> &y,
uint order = 1,
bool copy =
true);
43 Barycentric(
const std::vector<double> &x,
const std::vector<double> &y,
uint order = 1);
84 std::unique_ptr<boost::math::interpolators::barycentric_rational<double>>
interpolator;
94 CubicSpline(
const std::vector<double> &x,
const std::vector<double> &y);
This class takes in x-dependent data and interpolates it to a given x on request.
Definition interpolation.hh:24
Barycentric()
Construct an empty Interpolator object.
Barycentric(const std::vector< double > &x, const std::vector< double > &y, uint order=1)
Construct a new Interpolator object.
std::unique_ptr< boost::math::interpolators::barycentric_rational< double > > interpolator
Definition interpolation.hh:84
double derivative(double x) const
Interpolate the derivative of the data to a given x.
bool check_consistency(double tolerance) const
Check whether the interpolator is consistent with the original data. The interpolator checks if it ca...
double value(double x) const
Interpolate the data to a given x.
Barycentric(std::vector< double > &x, std::vector< double > &y, uint order=1, bool copy=true)
Construct a new Interpolator object.
double operator()(double x) const
Interpolate the data to a given x.
This class takes in x-dependent data and interpolates it to a given x on request. This class uses the...
Definition interpolation.hh:92
gsl_spline * spline
Definition interpolation.hh:106
double derivative(double x) const
double value(double x) const
double operator()(double x) const
gsl_interp_accel * acc
Definition interpolation.hh:105
CubicSpline(const std::vector< double > &x, const std::vector< double > &y)
Definition complex_math.hh:14
unsigned int uint
Definition utils.hh:22