class qintg

A quantized integrator.

Public Methods

[more]inline qintg()
Constructor.
[more]void init(double q0, double dq0 = 0.0)
Initialize the integrator with state q0 and input value dq0
[more]inline double ta() const
Get the time until the next quantum change in state, assuming constant input
[more]void integ(double dt, double dq)
Evaluate the integral over dt units of time with input dq.
[more]inline double out() const
Get the output value ta() units of time after the last state change (at the next internal event time, tL + ta())
[more]inline double out(double dt) const
Get the output value for time tL + dt
[more]inline double state() const
Get the current state of the integrator
[more]inline double qstate() const
Get the current quantized state of the integrator
[more]void setParams(double D, double e = -1.0)
Set the integrator parameters.


Documentation

A quantized integrator. The integrator operates on a double valued state and input value. This integrator is based on the DEVS integrator presented in "Theory of Quantized Systems: DEVS simulation of perceiving agents", Cybernetics and Systems, Volume 31, Number 6, Sept 2000.

The integration function treats values less than EPSILON to be equal to zero for the purposes of computing internal transitions. In particular, an integrator whose ta() < EPSILON is treated as having ta() = 0.0.

oinline qintg()
Constructor. Creates an uninitialized integrator.

ovoid init(double q0, double dq0 = 0.0)
Initialize the integrator with state q0 and input value dq0

oinline double ta() const
Get the time until the next quantum change in state, assuming constant input

ovoid integ(double dt, double dq)
Evaluate the integral over dt units of time with input dq. dt should be less than ta().

oinline double out() const
Get the output value ta() units of time after the last state change (at the next internal event time, tL + ta())

oinline double out(double dt) const
Get the output value for time tL + dt

oinline double state() const
Get the current state of the integrator

oinline double qstate() const
Get the current quantized state of the integrator

ovoid setParams(double D, double e = -1.0)
Set the integrator parameters. Arguments are quantum size D (default is 0.1) and hysteresis e (if < 0, defaults to D / 2.0).


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.