Hopsan
|
The SecondOrderTransferFunction class implements a second order transfer function using bilinear transform. More...
Public Member Functions | |
void | initialize (double timestep, double num[3], double den[3], double u0=0.0, double y0=0.0, double min=-1.5E+300, double max=1.5E+300, double sy0=0.0) |
Constructor. | |
void | initializeValues (double u0, double y0) |
void | setBackupLength (size_t nStep) |
void | setNum (double num[3]) |
void | setDen (double den[3]) |
void | setNumDen (double num[3], double den[3]) |
void | setMinMax (double min, double max) |
void | backup () |
void | restoreBackup (size_t nSteps=1) |
double | update (double u) |
double | updateWithBackup (double u) |
double | value () const |
double | delayedU () const |
double | delayed2U () const |
double | delayedY () const |
double | delayed2Y () const |
bool | isSaturated () const |
Check if the transfer function is saturated (har reached the set limits) | |
The SecondOrderTransferFunction class implements a second order transfer function using bilinear transform.
To declare a filter like
the syntax is filter.setNumDen(num, den) where , , and , , ,
void initialize | ( | double | timestep, |
double | num[3], | ||
double | den[3], | ||
double | u0 = 0.0, | ||
double | y0 = 0.0, | ||
double | min = -1.5E+300, | ||
double | max = 1.5E+300, | ||
double | sy0 = 0.0 ) |
Constructor.
timestep | Time step |
num | Numerator |
den | Denominator |
u0 | Initial input value |
y0 | Initial output value |
min | Minimum limit of output value |
max | Maximum limit of output value |
sy0 | Initial derivative of output value |
bool isSaturated | ( | ) | const |
Check if the transfer function is saturated (har reached the set limits)
double value | ( | ) | const |
Return current filter output value