Template wrapper for a generic spline function. More...
#include <spline_function.hpp>
Public Member Functions | |
double | dderivative (const double &x) const |
Access the value of the spline function's 2nd derivative at the specified value. More... | |
double | derivative (const double &x) const |
Access the value of the spline function's derivative at the specified value. More... | |
double | operator() (const double &x) const |
Access the value of the spline function at the specified value. More... | |
SplineFunction (const double &time_begin, const double &time_end, const Function &f) | |
Constructor, copies across an already existing spline function type and wraps it. More... | |
virtual | ~SplineFunction () |
Public Member Functions inherited from ecl::GenericSplineFunction | |
const Array< double, 2 > & | domain () |
Get access to the domain for this spline function. More... | |
virtual | ~GenericSplineFunction () |
Private Attributes | |
Function | function |
Additional Inherited Members | |
Protected Attributes inherited from ecl::GenericSplineFunction | |
Array< double, 2 > | time_domain |
Template wrapper for a generic spline function.
Template wrapper for a generic spline function. Didn't want to inherit an interface for all the underlying functions (polynomials, tension functions, splines etc) so this is an indirect way of getting the polymorphism to work. It is not usually used directly, but rather internally in the trajectory classes.
Function | : the internally wrapped function. |
Definition at line 88 of file spline_function.hpp.
|
inline |
Constructor, copies across an already existing spline function type and wraps it.
Copies an existing spline function into this wrapper along with domain boundaries.
time_begin | : beginning of the domain the spline function is valid on. |
time_end | : end of the domain the spline function is valid on. |
f | : the spline function to wrap. |
Definition at line 99 of file spline_function.hpp.
|
inlinevirtual |
Definition at line 102 of file spline_function.hpp.
|
inlinevirtual |
Access the value of the spline function's 2nd derivative at the specified value.
x | : the point at which you wish to calculate the value for. |
StandardException : throws if input x value is outside the domain [debug mode only]. |
Implements ecl::GenericSplineFunction.
Definition at line 132 of file spline_function.hpp.
|
inlinevirtual |
Access the value of the spline function's derivative at the specified value.
x | : the point at which you wish to calculate the value for. |
StandardException : throws if input x value is outside the domain [debug mode only]. |
Implements ecl::GenericSplineFunction.
Definition at line 121 of file spline_function.hpp.
|
inlinevirtual |
Access the value of the spline function at the specified value.
x | : the point at which you wish to calculate the value for. |
StandardException : throws if input x value is outside the domain [debug mode only]. |
Implements ecl::GenericSplineFunction.
Definition at line 110 of file spline_function.hpp.
|
private |
Definition at line 138 of file spline_function.hpp.