![]() |
ryujin 2.1.1 revision 003d8fa0b21a2fd867c2893d046eb34a0f9e932c
|
#include <source/cubic_spline.h>
Public Member Functions | |
CubicSpline (const std::vector< double > &x, const std::vector< double > &y) noexcept | |
CubicSpline (const CubicSpline ©) | |
CubicSpline & | operator= (const CubicSpline &)=delete |
~CubicSpline () | |
double | eval (double x) const |
A cubic spline class implemented as a thin wrapper around the GSL spline library functions.
Usage:
Definition at line 30 of file cubic_spline.h.
|
inlinenoexcept |
Constructor.
x
and y
must have the same size and must contain at least two elements. The vector x
must be sorted Definition at line 39 of file cubic_spline.h.
|
inline |
Copy constructor.
Definition at line 58 of file cubic_spline.h.
|
inline |
Destructor.
Definition at line 71 of file cubic_spline.h.
|
delete |
The copy assignment operator is deleted.
|
inline |
Evaluate the cubic spline at a given point x
.
x
must lie within the interval described by the largest and smallest support point supplied to the constructor. Definition at line 83 of file cubic_spline.h.