A class for the derivatives of a cubic spline (=0 for order>2). More...
#include <Functions.h>
Inheritance diagram for Core::CubicSplineDerivatives:
Collaboration diagram for Core::CubicSplineDerivatives:Public Member Functions | |
| CubicSplineDerivatives (double func_value, double first_deriv, double second_deriv) | |
| Constuct a spline derivative. More... | |
| double | order (unsigned deriv_order=1) const |
| Returns the derivative of the given order (zero is allowed). More... | |
Public Member Functions inherited from Core::FunctionDerivatives | |
| virtual | ~FunctionDerivatives () |
| Clean up. More... | |
Private Attributes | |
| double | zeroth |
| The value of the function. More... | |
| double | first |
| The first derivative. More... | |
| double | second |
| The second derivative. More... | |
A class for the derivatives of a cubic spline (=0 for order>2).
Definition at line 77 of file Functions.h.
| Core::CubicSplineDerivatives::CubicSplineDerivatives | ( | double | func_value, |
| double | first_deriv, | ||
| double | second_deriv | ||
| ) |
Constuct a spline derivative.
Creates the derivative variable with the values of the function and first and second derivatives as specified. All higher order derivatives are zero.
| func_value | The value of the function (zeroth derivative) |
| first_deriv | The first derivative. |
| second_deriv | The second derivative. |
Definition at line 20 of file Functions.cpp.
|
virtual |
Returns the derivative of the given order (zero is allowed).
Implements Core::FunctionDerivatives.
Definition at line 26 of file Functions.cpp.
|
private |
The first derivative.
Definition at line 79 of file Functions.h.
|
private |
The second derivative.
Definition at line 79 of file Functions.h.
|
private |
The value of the function.
Definition at line 79 of file Functions.h.