|
Ember
|
Chebyshev polynomial representation of a(t). More...
#include <scalarFunction.h>
Public Member Functions | |
| ChebyshevFunction (const ConfigOptions &options) | |
| virtual double | a (double t) const |
Compute the value of the function at time t. | |
| virtual double | dadt (double t) const |
Compute the time derivative of the function at time t. | |
| virtual void | setCoefficients (int n, const double *coeffs) |
| The first two elements are the time interval \( (t_0, t_1) \) used to map the time onto the interval (-1, 1). | |
Public Member Functions inherited from ScalarFunction | |
| ScalarFunction () | |
| virtual | ~ScalarFunction () |
Private Attributes | |
| double | T0 |
| double | T1 |
| dvec | coeffs |
Chebyshev polynomial representation of a(t).
\[ a(t) = \sum_{n=0}^N a_n T_n(x) \]
where \( T_n(x) \) are Chebyshev polynomials of the first kind and \( x = 2 * (t-t_o)/(t_1-t_0) - 1 \) maps t onto the interval [-1,1].
|
explicit |
|
virtual |
Compute the value of the function at time t.
Implements ScalarFunction.
|
virtual |
Compute the time derivative of the function at time t.
Implements ScalarFunction.
|
virtual |
The first two elements are the time interval \( (t_0, t_1) \) used to map the time onto the interval (-1, 1).
The remaining elements are the coefficients used to multiply the Chebyshev polynomials.
Reimplemented from ScalarFunction.
|
private |
|
private |
|
private |