GClasses
|
A node in a belief network that always returns the sum of its parent nodes.
#include <GBayesianNetwork.h>
Public Member Functions | |
GBNSum () | |
General-purpose constructor. More... | |
virtual | ~GBNSum () |
void | addParent (GBNNode *pNode) |
Adds a new parent node to this one, to be included in the summation. All parents must be added before any child nodes are added. More... | |
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 all the parent nodes of this node back to the child. More... | |
Public Member Functions inherited from GClasses::GBNNode | |
GBNNode () | |
virtual | ~GBNNode () |
Protected Attributes | |
bool | m_gotChildren |
std::vector< GBNNode * > | m_parents |
Protected Attributes inherited from GClasses::GBNNode | |
bool | m_observed |
double | m_observedValue |
|
inline |
General-purpose constructor.
|
inlinevirtual |
void GClasses::GBNSum::addParent | ( | GBNNode * | pNode | ) |
Adds a new parent node to this one, to be included in the summation. All parents must be added before any child nodes are added.
|
virtual |
Returns the sum of the current values of all the parents of this node.
Implements GClasses::GBNNode.
|
virtual |
This method links all the parent nodes of this node back to the child.
Implements GClasses::GBNNode.
|
protected |
|
protected |