Ember
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
LinearFunction Class Reference

Represents a function that is constant before and after a linear ramp. More...

#include <scalarFunction.h>

Inheritance diagram for LinearFunction:
[legend]

Public Member Functions

 LinearFunction (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.
 
- Public Member Functions inherited from ScalarFunction
 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.
 

Private Attributes

double aInitial
 
double aFinal
 
double T0
 
double Dt
 

Detailed Description

Represents a function that is constant before and after a linear ramp.

The value is constant at aInitial until time T0, then increases linearly to aFinal at time T0 + Dt.

Constructor & Destructor Documentation

◆ LinearFunction()

LinearFunction::LinearFunction ( const ConfigOptions options)
explicit

Member Function Documentation

◆ a()

double LinearFunction::a ( double  t) const
virtual

Compute the value of the function at time t.

Implements ScalarFunction.

◆ dadt()

double LinearFunction::dadt ( double  t) const
virtual

Compute the time derivative of the function at time t.

Implements ScalarFunction.

Member Data Documentation

◆ aInitial

double LinearFunction::aInitial
private

◆ aFinal

double LinearFunction::aFinal
private

◆ T0

double LinearFunction::T0
private

◆ Dt

double LinearFunction::Dt
private

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