Ember
Loading...
Searching...
No Matches
ScalarFunction Class Referenceabstract

Represents a parameterization of a scalar function of one variable, a(t). More...

#include <scalarFunction.h>

Inheritance diagram for ScalarFunction:
[legend]

Public Member Functions

 ScalarFunction ()
 
virtual ~ScalarFunction ()
 
virtual void setCoefficients (int n, const double *coeffs)
 Set the parameters associated with this function.
 
virtual double a (double t) const =0
 Compute the value of the function at time t.
 
virtual double dadt (double t) const =0
 Compute the time derivative of the function at time t.
 

Detailed Description

Represents a parameterization of a scalar function of one variable, a(t).

Constructor & Destructor Documentation

◆ ScalarFunction()

ScalarFunction::ScalarFunction ( )
inline

◆ ~ScalarFunction()

virtual ScalarFunction::~ScalarFunction ( )
inlinevirtual

Member Function Documentation

◆ setCoefficients()

virtual void ScalarFunction::setCoefficients ( int n,
const double * coeffs )
inlinevirtual

Set the parameters associated with this function.

The meaning of the elements of coeffs depends on the parameterization.

Reimplemented in ChebyshevFunction.

◆ a()

virtual double ScalarFunction::a ( double t) const
pure virtual

Compute the value of the function at time t.

Implemented in ChebyshevFunction, and LinearFunction.

◆ dadt()

virtual double ScalarFunction::dadt ( double t) const
pure virtual

Compute the time derivative of the function at time t.

Implemented in ChebyshevFunction, and LinearFunction.


The documentation for this class was generated from the following file: