GClasses
|
The base class of all nodes in a Bayesian belief network.
#include <GBayesianNetwork.h>
Public Member Functions | |
GBNNode () | |
virtual | ~GBNNode () |
virtual double | currentValue ()=0 |
Returns the current value of this node. If this node represents a random variable, then it returns the value most-recently sampled from its distribution. More... | |
virtual void | onNewChild (GBNVariable *pChild)=0 |
This method is called when this node is added as the parent to pChild. It gives this node a chance to link back to the child if needed. More... | |
Protected Attributes | |
bool | m_observed |
double | m_observedValue |
GClasses::GBNNode::GBNNode | ( | ) |
|
virtual |
|
pure virtual |
Returns the current value of this node. If this node represents a random variable, then it returns the value most-recently sampled from its distribution.
Implemented in GClasses::GBNMetropolisNode, GClasses::GBNCategorical, GClasses::GBNVariable, GClasses::GBNMath, GClasses::GBNProduct, GClasses::GBNSum, and GClasses::GBNConstant.
|
pure virtual |
This method is called when this node is added as the parent to pChild. It gives this node a chance to link back to the child if needed.
Implemented in GClasses::GBNVariable, GClasses::GBNMath, GClasses::GBNProduct, GClasses::GBNSum, and GClasses::GBNConstant.
|
protected |
|
protected |