class CBNSStateBase

The CBNSState class is derived from this abstract class

Inheritance:


Public Methods

virtual double GetProbability ()
Returns the probability of the state
virtual string GetName ()
Returns the name of the state
virtual void SetProbability (double dValue)
Sets the probability of the state to dValue
virtual void SetName (string strName)
Sets the name of the state to strName

Protected Fields

string m_strName
The name of the state
double m_dProbability
The probability assigned to the state

Documentation

The CBNSState class is derived from this abstract class. The states of the nodes in Bayesian networks could belong to any category. For eg., the state could be of string type or char type or double type. Since the CBNSState class is templatized it would be easy to have a vector of CBNSStateBase instead of having vector of CBNSStates for each category.
string m_strName
The name of the state

double m_dProbability
The probability assigned to the state

virtual double GetProbability()
Returns the probability of the state

virtual string GetName()
Returns the name of the state

virtual void SetProbability(double dValue)
Sets the probability of the state to dValue

virtual void SetName(string strName)
Sets the name of the state to strName


Direct child classes:
CBNSState

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de