Biorithm
1.1
|
Public Member Functions | |
string | getId () const |
void | setId (string _id) |
StateType | getInitialState () const |
StateType | getCurrentState () const |
StateType | getPreviousState () const |
StateType | getState () const |
void | setState (StateType newState) |
void | initialiseState (StateType state) |
bool | hasConverged () |
bool | hasConvergedApproximately (MyNT epsilon=1e-03) const |
bool | isClamped () const |
void | clamp () |
void | unclamp () |
templated class that stores various pieces of information relevant to the state of a node.
bool MyGainStateInfo< StateType >::hasConverged | ( | ) | [inline] |
Check whether the current state of the node is the same as the previous state of the node.
To check for convergence, it is enough to check whether the collapsed value of the current state equals the collapsed value of the previous state. This statement is certainly true and needed for MyOneVersusAllHopfieldGainAlgo.
bool MyGainStateInfo< StateType >::hasConvergedApproximately | ( | MyNT | epsilon = 1e-03 | ) | const [inline] |
Check whether the current state of the node is the same as the previous state of the node.
epsilon,consider | two states to be equal if they differ by less than this parameter. |