#include <BSpline.h>
Inheritance diagram for BSpline< T >:

Public Member Functions | |
| BSpline (const T *x, int nx, const T *y, double wl, int bc_type=BSplineBase< T >::BC_ZERO_SECOND, int num_nodes=0) | |
| Create a single spline with the parameters required to set up the domain and subsequently smooth the given set of y values. | |
| BSpline (BSplineBase< T > &base, const T *y) | |
A BSpline curve can be derived from a separate base and a set of data points y over that base. | |
| bool | solve (const T *y) |
| Solve the spline curve for a new set of y values. | |
| const T * | curve (int *nx=0) |
| Return the entire curve evaluated at each of the nodes. | |
| T | evaluate (T x) |
Return the evaluation of the smoothed curve at a particular x value. | |
| T | slope (T x) |
Return the first derivative of the spline curve at the given x. | |
| T | coefficient (int n) |
Return the n-th basis coefficient, from 0 to M. | |
Protected Attributes | |
| BSplineP< T > * | s |
| T | mean |
See the BSplineBase documentation for a summary of the BSpline interface.
|
||||||||||||||||||||||||||||||||
|
Create a single spline with the parameters required to set up the domain and subsequently smooth the given set of y values. The y values must correspond to each of the values in the x array. If either the domain setup fails or the spline cannot be solved, the state will be set to not ok.
|
|
||||||||||
|
Return the
If the current state is not ok(), or |
|
||||||||||
|
Return the entire curve evaluated at each of the nodes. The array is held by the object, and thus should not be freed and is only valid while the object exists. If the current state is not ok(), the method returns zero.
|
|
||||||||||
|
Return the evaluation of the smoothed curve at a particular If current state is not ok(), returns 0. |
|
||||||||||
|
Return the first derivative of the spline curve at the given Returns zero if the current state is not ok(). |
|
||||||||||
|
Solve the spline curve for a new set of y values. Returns false if the solution fails.
|
1.4.2