|
GClasses
|
A node in a belief network that applies some math operation to the output of its one parent node. More...
#include <GBayesianNetwork.h>
Public Types | |
| enum | math_op { NEGATE, RECIPROCAL, SQUARE_ROOT, SQUARE, LOG_E, EXP, TANH, GAMMA, ABS } |
Public Member Functions | |
| GBNMath (GBNNode *pParent, math_op operation) | |
| General-purpose constructor. More... | |
| virtual | ~GBNMath () |
| virtual double | currentValue () |
| Returns the sum of the current values of all the parents of this node. More... | |
| virtual void | onNewChild (GBNVariable *pChild) |
| This method links the parent node of this node back to the child. More... | |
Public Member Functions inherited from GClasses::GBNNode | |
| GBNNode () | |
| virtual | ~GBNNode () |
Protected Attributes | |
| math_op | m_op |
| GBNNode * | m_parent |
Protected Attributes inherited from GClasses::GBNNode | |
| bool | m_observed |
| double | m_observedValue |
A node in a belief network that applies some math operation to the output of its one parent node.
General-purpose constructor.
|
inlinevirtual |
|
virtual |
Returns the sum of the current values of all the parents of this node.
Implements GClasses::GBNNode.
|
virtual |
This method links the parent node of this node back to the child.
Implements GClasses::GBNNode.
|
protected |
|
protected |