ryujin 2.1.1 revision 0348cbb53a3e4b1da2a4c037e81f88f2d21ce219
|
#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 28 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 37 of file cubic_spline.h.
|
inline |
Copy constructor.
Definition at line 56 of file cubic_spline.h.
|
inline |
Destructor.
Definition at line 69 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 81 of file cubic_spline.h.