Spline for two sampling points. More...
#include <dumux/common/spline.hh>
For this type of spline there is no natural spline.
Public Member Functions | |
| Spline () | |
| template<class ScalarArrayX, class ScalarArrayY> | |
| Spline (const ScalarArrayX &x, const ScalarArrayY &y, Scalar m0, Scalar m1) | |
| Convenience constructor for a full spline. | |
| template<class PointArray> | |
| Spline (const PointArray &points, Scalar m0, Scalar m1) | |
| Convenience constructor for a full spline. | |
| Spline (Scalar x0, Scalar x1, Scalar y0, Scalar y1, Scalar m0, Scalar m1) | |
| Convenience constructor for a full spline. | |
| int | numSamples () const |
| Returns the number of sampling points. | |
| void | set (Scalar x0, Scalar x1, Scalar y0, Scalar y1, Scalar m0, Scalar m1) |
| Set the sampling points and the boundary slopes of the spline. | |
| template<class ScalarContainer> | |
| void | setXYArrays (int nSamples, const ScalarContainer &x, const ScalarContainer &y, Scalar m0, Scalar m1) |
| Set the sampling points and the boundary slopes of the spline. | |
| template<class ScalarContainerX, class ScalarContainerY> | |
| void | setXYContainers (const ScalarContainerX &x, const ScalarContainerY &y, Scalar m0, Scalar m1) |
| Set the sampling points and the boundary slopes of the spline. | |
| template<class PointArray> | |
| void | setArrayOfPoints (int nSamples, const PointArray &points, Scalar m0, Scalar m1) |
| Set the sampling points and the boundary slopes of the spline. | |
| template<class PointContainer> | |
| void | setContainerOfPoints (const PointContainer &points, Scalar m0, Scalar m1) |
| Set the sampling points and the boundary slopes from an STL-like container of points. | |
| template<class TupleContainer> | |
| void | setContainerOfTuples (const TupleContainer &tuples, Scalar m0, Scalar m1) |
| Set the sampling points and the boundary slopes from an STL-like container of tuples. | |
| Spline () | |
| Default constructor for a spline. | |
| Spline (const ScalarArray &x, const ScalarArray &y) | |
| Convenience constructor for a full spline. | |
| Spline (const PointArray &points) | |
| Convenience constructor for a full spline. | |
| Spline (const ScalarArray &x, const ScalarArray &y, Scalar m0, Scalar m1) | |
| Convenience constructor for a full spline. | |
| Spline (const PointArray &points, Scalar m0, Scalar m1) | |
| Convenience constructor for a full spline. | |
Protected Member Functions | |
| void | assignXY_ (Scalar x0, Scalar x1, Scalar y0, Scalar y1) |
| Scalar | x_ (int i) const |
| Returns the x coordinate of the i-th sampling point. | |
| Scalar | y_ (int i) const |
| Returns the y coordinate of the i-th sampling point. | |
| Scalar | moment_ (int i) const |
| Returns the moment (i.e. second derivative) of the spline at the i-th sampling point. | |
Protected Attributes | |
| Vector | xPos_ |
| Vector | yPos_ |
| Vector | m_ |
|
inline |
|
inline |
| x | An array containing the \(x\) values of the spline's sampling points |
| y | An array containing the \(y\) values of the spline's sampling points |
| m0 | The slope of the spline at \(x_0\) |
| m1 | The slope of the spline at \(x_n\) |
|
inline |
| points | An array of \((x,y)\) tuples of the spline's sampling points |
| m0 | The slope of the spline at \(x_0\) |
| m1 | The slope of the spline at \(x_n\) |
|
inline |
| x0 | The \(x\) value of the first sampling point |
| x1 | The \(x\) value of the second sampling point |
| y0 | The \(y\) value of the first sampling point |
| y1 | The \(y\) value of the second sampling point |
| m0 | The slope of the spline at \(x_0\) |
| m1 | The slope of the spline at \(x_n\) |
|
inline |
To specify the actual curve, use one of the set() methods.
|
inline |
| x | An array containing the \(x\) values of the spline's sampling points |
| y | An array containing the \(y\) values of the spline's sampling points |
|
inline |
| points | An array of \((x,y)\) tuples of the spline's sampling points |
|
inline |
| x | An array containing the \(x\) values of the spline's sampling points |
| y | An array containing the \(y\) values of the spline's sampling points |
| m0 | The slope of the spline at \(x_0\) |
| m1 | The slope of the spline at \(x_n\) |
|
inline |
| points | An array of \((x,y)\) tuples of the spline's sampling points |
| m0 | The slope of the spline at \(x_0\) |
| m1 | The slope of the spline at \(x_n\) |
|
inlineprotected |
|
inlineprotected |
|
inline |
|
inline |
| x0 | The \(x\) value of the first sampling point |
| x1 | The \(x\) value of the second sampling point |
| y0 | The \(y\) value of the first sampling point |
| y1 | The \(y\) value of the second sampling point |
| m0 | The slope of the spline at \(x_0\) |
| m1 | The slope of the spline at \(x_1\) |
|
inline |
| nSamples | The number of sampling points (must be >= 2) |
| points | An array of \((x,y)\) tuples of the spline's sampling points |
| m0 | The slope of the spline at \(x_0\) |
| m1 | The slope of the spline at \(x_1\) |
|
inline |
| points | An array of \((x,y)\) tuples of the spline's sampling points |
| m0 | The slope of the spline at \(x_0\) |
| m1 | The slope of the spline at \(x_1\) |
|
inline |
| tuples | An array of \((x,y)\) tuples of the spline's sampling points |
| m0 | The slope of the spline at \(x_0\) |
| m1 | The slope of the spline at \(x_1\) |
|
inline |
| nSamples | The number of sampling points (must be >= 2) |
| x | An array containing the \(x\) values of the sampling points |
| y | An array containing the \(y\) values of the sampling points |
| m0 | The slope of the spline at \(x_0\) |
| m1 | The slope of the spline at \(x_1\) |
|
inline |
| x | An array containing the \(x\) values of the sampling points |
| y | An array containing the \(y\) values of the sampling points |
| m0 | The slope of the spline at \(x_0\) |
| m1 | The slope of the spline at \(x_1\) |
|
inlineprotected |
|
inlineprotected |
|
protected |
|
protected |
|
protected |