adevs
adevs_poly.h
1 
31 #ifndef _adevs_poly_h_
32 #define _adevs_poly_h_
33 #include <cstdlib>
34 
35 namespace adevs
36 {
47  class InterPoly
48  {
49  public:
56  InterPoly(const double* u, const double* t, unsigned int n);
61  InterPoly(const double* u, double dt, unsigned int n, double t0 = 0.0);
67  void setData(const double* u, const double* t = NULL);
71  double interpolate(double t) const;
75  double operator()(double t) const;
79  double derivative(double t) const;
83  ~InterPoly();
84  private:
85  InterPoly(){}
86  InterPoly(const InterPoly&){}
87  void operator=(const InterPoly&){}
88 
89  double* tdat;
90  double* udat;
91  unsigned int n;
92  };
93 }
94 
95 #endif
double operator()(double t) const
Definition: adevs_poly.h:47
double interpolate(double t) const
void setData(const double *u, const double *t=NULL)
double derivative(double t) const