#include <Counter.h>
Public Member Functions | |
Counter (TimeSpecsType) | |
Starts the whistle counter.The start situation is "No Whistle" from a long time. | |
~Counter () | |
Destroys the counter. | |
int | Process (int) |
Processes the current input coming from the perceptron. | |
float | GetReliability () |
Returns the last whistle's reliability. | |
Private Attributes | |
int | mPrevious |
previous perceptron's state | |
TimeSpecsType | mSpecs |
Timing specifics: see TimeSpecStruct.h. | |
unsigned int | mEventStackPointer |
Points to the current event. | |
EventType | mpEventStack [5] |
The main event stack. | |
unsigned int | mNumWhistles |
Counter for multiple whistles. | |
float | mReliability |
Current reliability. | |
float | mLastReliability |
Last message's reliability. |
It receives the perceptron's output and recognises short, long or multiple whistles.
|
Starts the whistle counter.The start situation is "No Whistle" from a long time.
|
|
Destroys the counter.
|
|
Returns the last whistle's reliability. Reliability is calculated in the Process() function
|
|
Processes the current input coming from the perceptron.
|
|
Points to the current event.
|
|
Last message's reliability.
|
|
Counter for multiple whistles.
|
|
The main event stack.
|
|
previous perceptron's state
|
|
Current reliability.
|
|
Timing specifics: see TimeSpecStruct.h.
|