|
SpECTRE
2021.08.02
|
A natural cubic spline interpolation class. More...
#include <CubicSpline.hpp>
Public Member Functions | |
| CubicSpline (std::vector< double > x_values, std::vector< double > y_values) noexcept | |
| CubicSpline (const CubicSpline &)=delete | |
| CubicSpline & | operator= (const CubicSpline &)=delete |
| CubicSpline (CubicSpline &&) noexcept=default | |
| CubicSpline & | operator= (CubicSpline &&rhs) noexcept=default |
| double | operator() (double x_to_interp_to) const noexcept |
| void | pup (PUP::er &p) noexcept |
A natural cubic spline interpolation class.
The class builds a cubic spline interpolant with natural boundary conditions using the x_values and y_values passed into the constructor. For details on the algorithm see the GSL documentation on gsl_interp_cspline.
Here is an example how to use this class: