GClasses
GClasses::GBNMath Class Reference

Detailed Description

A node in a belief network that applies some math operation to the output of its one parent node.

#include <GBayesianNetwork.h>

Inheritance diagram for GClasses::GBNMath:
GClasses::GBNNode

Public Types

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
 
GBNNodem_parent
 
- Protected Attributes inherited from GClasses::GBNNode
bool m_observed
 
double m_observedValue
 

Member Enumeration Documentation

Enumerator
NEGATE 
RECIPROCAL 
SQUARE_ROOT 
SQUARE 
LOG_E 
EXP 
TANH 
GAMMA 
ABS 

Constructor & Destructor Documentation

GClasses::GBNMath::GBNMath ( GBNNode pParent,
math_op  operation 
)
inline

General-purpose constructor.

virtual GClasses::GBNMath::~GBNMath ( )
inlinevirtual

Member Function Documentation

virtual double GClasses::GBNMath::currentValue ( )
virtual

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

Implements GClasses::GBNNode.

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

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

Implements GClasses::GBNNode.

Member Data Documentation

math_op GClasses::GBNMath::m_op
protected
GBNNode* GClasses::GBNMath::m_parent
protected