#include <adevs_poly.h>
Public Member Functions | |
InterPoly (const double *u, const double *t, unsigned int n) | |
InterPoly (const double *u, double dt, unsigned int n, double t0=0.0) | |
void | setData (const double *u, const double *t=NULL) |
double | interpolate (double t) const |
double | operator() (double t) const |
double | derivative (double t) const |
~InterPoly () |
|
Construct a polynomial to interpolate a function u(t). The u- values are the depedent variable and t- the independent variables. |
|
Construct a polynomial to interpolate u(t) with data points that are regularly spaced in time from an offset t0 |
|
Destructor |
|
Approximate the function derivative at t |
|
Get the interpolated value at t |
|
Overloaded operator for the interpolate method |
|
Assign new values to the data set. If t is NULL, then only new u values will be assigned and the old t data is kept. |