|
SpECTRE
v2025.08.19
|
A natural cubic spline interpolation class. More...
#include <CubicSpline.hpp>
Public Member Functions | |
| CubicSpline (std::vector< double > x_values, std::vector< double > y_values) | |
| CubicSpline (const CubicSpline &) | |
| CubicSpline & | operator= (const CubicSpline &) |
| CubicSpline (CubicSpline &&)=default | |
| CubicSpline & | operator= (CubicSpline &&rhs)=default |
| bool | operator== (const CubicSpline &rhs) const |
| double | operator() (double x_to_interp_to) const |
| const std::vector< double > & | x_values () const |
| const std::vector< double > & | y_values () const |
| void | pup (PUP::er &p) |
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: