| Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
SmoothCompareTrans< T > Class Template ReferenceA subclass of CompareTrans, which provides monitoring of exponentially weighted averages to a threshold. More...
Inheritance diagram for SmoothCompareTrans< T >:
![]() Detailed Descriptiontemplate<class T>
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 | postStart () |
| 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 | doEvent () |
| 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 | |
| SmoothCompareTrans< T >::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
Definition at line 18 of file SmoothCompareTrans.h.
| SmoothCompareTrans< T >::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
Definition at line 24 of file SmoothCompareTrans.h.
| SmoothCompareTrans< T >::SmoothCompareTrans | ( | const SmoothCompareTrans< T > & | node | ) | [private] |
don't call this
| virtual void SmoothCompareTrans< T >::doEvent | ( | ) | [virtual] |
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.
| unsigned int SmoothCompareTrans< T >::getBurnIn | ( | ) |
returns number of tests to perform before allowing a transition; default 1/(1-g)
Definition at line 41 of file SmoothCompareTrans.h.
| SmoothCompareTrans SmoothCompareTrans< T >::operator= | ( | const SmoothCompareTrans< T > & | node | ) | [private] |
don't call this
| virtual void SmoothCompareTrans< T >::postStart | ( | ) | [virtual] |
starts listening
Reimplemented from CompareTrans< T >.
Definition at line 29 of file SmoothCompareTrans.h.
| void SmoothCompareTrans< T >::setBurnIn | ( | unsigned int | i | ) |
sets number of tests to perform before allowing a transition; default 1/(1-g)
Definition at line 36 of file SmoothCompareTrans.h.
T SmoothCompareTrans< T >::avg [protected] |
the current running average
Definition at line 57 of file SmoothCompareTrans.h.
Referenced by SmoothCompareTrans< T >::doEvent(), and SmoothCompareTrans< T >::postStart().
unsigned int SmoothCompareTrans< T >::burnin [protected] |
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 >::doEvent(), SmoothCompareTrans< T >::getBurnIn(), and SmoothCompareTrans< T >::setBurnIn().
float SmoothCompareTrans< T >::g [protected] |
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 >::doEvent().
const T* SmoothCompareTrans< T >::realmon [protected] |
pointer to the value being monitored
Definition at line 58 of file SmoothCompareTrans.h.
Referenced by SmoothCompareTrans< T >::doEvent(), and SmoothCompareTrans< T >::postStart().
unsigned int SmoothCompareTrans< T >::tests [protected] |
counter of tests made since last doStart()
Definition at line 61 of file SmoothCompareTrans.h.
Referenced by SmoothCompareTrans< T >::doEvent(), and SmoothCompareTrans< T >::postStart().
|
Tekkotsu v5.1CVS |
Generated Mon May 9 04:59:17 2016 by Doxygen 1.6.3 |