GClasses
GClasses::GBNProduct Class Reference

Detailed Description

A node in a belief network that always returns the product of its parent nodes.

#include <GBayesianNetwork.h>

Inheritance diagram for GClasses::GBNProduct:
GClasses::GBNNode

Public Member Functions

 GBNProduct ()
 General-purpose constructor. More...
 
virtual ~GBNProduct ()
 
void addParent (GBNNode *pNode)
 Adds a new parent node to this one, to be included in the summation. 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
 

Constructor & Destructor Documentation

GClasses::GBNProduct::GBNProduct ( )
inline

General-purpose constructor.

virtual GClasses::GBNProduct::~GBNProduct ( )
inlinevirtual

Member Function Documentation

void GClasses::GBNProduct::addParent ( GBNNode pNode)

Adds a new parent node to this one, to be included in the summation.

virtual double GClasses::GBNProduct::currentValue ( )
virtual

Returns the sum of the current values of all the parents of this node.

Implements GClasses::GBNNode.

virtual void GClasses::GBNProduct::onNewChild ( GBNVariable pChild)
virtual

This method links all the parent nodes of this node back to the child.

Implements GClasses::GBNNode.

Member Data Documentation

bool GClasses::GBNProduct::m_gotChildren
protected
std::vector<GBNNode*> GClasses::GBNProduct::m_parents
protected