#include <rdSpline.h>
Public Member Functions | |
| virtual | ~rdSpline () |
| Destructor. | |
| rdSpline (const char *aFileName) | |
| Construct a b-spline representation of a smooth function. | |
| rdSpline (FILE *aFP) | |
| Construct a b-spline representation of a smooth function. | |
| int | getKnotIndex (double x) |
| Get the knot index for the interval in which x falls. | |
| double | evaluate (double x) |
| Evaluate a spline at x. | |
| void | print () |
| Print a spline. | |
Private Member Functions | |
| int | initialize (FILE *aFP) |
| Initialize spline based on the contents of a file. | |
| void | null () |
| NULL or zero data. | |
| int | checkFileStatus (int aStatus) |
| Check the status of a file read. | |
Private Attributes | |
| int | _status |
| char | _name [RDSPLINE_MAXSIZE] |
| double | _ti |
| double | _tf |
| int | _order |
| int | _nknots |
| int | _ncoefs |
| double * | _knots |
| double * | _coefs |
| double * | _tx |
| double * | _b |
|
|
Construct a b-spline representation of a smooth function.
|
|
|
Construct a b-spline representation of a smooth function.
|
|
|
Check the status of a file read.
|
|
|
Evaluate a spline at x. This function is based on Matlab's spval.m. 2000_08_10 This routine assumes that the end knots have the proper multiplicity. |
|
|
Get the knot index for the interval in which x falls. If x does not fall within a valid interval, -1 is returned. |
|
|
Initialize spline based on the contents of a file.
|
1.3