| Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
SmoothCompareTrans< T > Class Template Reference#include <SmoothCompareTrans.h>
Inheritance diagram for SmoothCompareTrans< T >: ![]() Detailed Descriptiontemplate<class T>
A subclass of CompareTrans, which provides monitoring of exponentially weighted averages to a threshold.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Public Member Functions | |
| SmoothCompareTrans (StateNode *destination, const T *monitor, typename SmoothCompareTrans< T >::Test_t test, const T &value, const EventBase &poll, float gammap=0) | |
| constructor, see SmoothCompareTrans class notes for information | |
| SmoothCompareTrans (const std::string &name, StateNode *destination, const T *monitor, typename SmoothCompareTrans< T >::Test_t test, const T &value, const EventBase &poll, float gammap=0) | |
| constructor, see SmoothCompareTrans class notes for information | |
| virtual void | DoStart () |
| starts listening | |
| void | setBurnIn (unsigned int i) |
| sets number of tests to perform before allowing a transition; default 1/(1-g) | |
| unsigned int | getBurnIn () |
| returns number of tests to perform before allowing a transition; default 1/(1-g) | |
| virtual void | processEvent (const EventBase &e) |
| don't care about the event, just a pulse to check the values | |
Protected Attributes | |
| T | avg |
| the current running average | |
| const T * | realmon |
| pointer to the value being monitored | |
| unsigned int | burnin |
| number of tests to perform before allowing a transition; default 1/(1-g) | |
| unsigned int | tests |
| counter of tests made since last DoStart() | |
| float | g |
| the gamma value controlling the exponential average, see the class documentation at the top | |
Private Member Functions | |
| SmoothCompareTrans (const SmoothCompareTrans &node) | |
| don't call this | |
| SmoothCompareTrans | operator= (const SmoothCompareTrans &node) |
| don't call this | |
|
||||||||||||||||||||||||||||||||
|
constructor, see SmoothCompareTrans class notes for information
Definition at line 18 of file SmoothCompareTrans.h. |
|
||||||||||||||||||||||||||||||||||||
|
constructor, see SmoothCompareTrans class notes for information
Definition at line 24 of file SmoothCompareTrans.h. |
|
||||||||||
|
don't call this
|
|
|||||||||
|
starts listening
Reimplemented from CompareTrans< T >. Definition at line 29 of file SmoothCompareTrans.h. |
|
|||||||||
|
returns number of tests to perform before allowing a transition; default 1/(1-g)
Definition at line 41 of file SmoothCompareTrans.h. |
|
||||||||||
|
don't call this
|
|
||||||||||
|
don't care about the event, just a pulse to check the values
Reimplemented from CompareTrans< T >. Definition at line 46 of file SmoothCompareTrans.h. |
|
||||||||||
|
sets number of tests to perform before allowing a transition; default 1/(1-g)
Definition at line 36 of file SmoothCompareTrans.h. |
|
|||||
|
the current running average
Definition at line 57 of file SmoothCompareTrans.h. Referenced by SmoothCompareTrans< T >::DoStart(), and SmoothCompareTrans< T >::processEvent(). |
|
|||||
|
number of tests to perform before allowing a transition; default 1/(1-g)
Definition at line 60 of file SmoothCompareTrans.h. Referenced by SmoothCompareTrans< T >::getBurnIn(), SmoothCompareTrans< T >::processEvent(), and SmoothCompareTrans< T >::setBurnIn(). |
|
|||||
|
the gamma value controlling the exponential average, see the class documentation at the top
Definition at line 64 of file SmoothCompareTrans.h. Referenced by SmoothCompareTrans< T >::processEvent(). |
|
|||||
|
pointer to the value being monitored
Definition at line 58 of file SmoothCompareTrans.h. Referenced by SmoothCompareTrans< T >::DoStart(), and SmoothCompareTrans< T >::processEvent(). |
|
|||||
|
counter of tests made since last DoStart()
Definition at line 61 of file SmoothCompareTrans.h. Referenced by SmoothCompareTrans< T >::DoStart(), and SmoothCompareTrans< T >::processEvent(). |
|
Tekkotsu v2.4 |
Generated Wed Aug 10 11:06:56 2005 by Doxygen 1.4.4 |