class Model

A Model is a compact description of a table

Public Methods

Model(DiscreteChanceNode *belongsToNode, const NodeList& modelNodes) throw(HAPI::ExceptionHugin)
Construct a model over a discrete chance node given a set of Nodes
Model(UtilityNode *belongsToNode, const NodeList& modelNodes) throw(HAPI::ExceptionHugin)
Construct a model over a utility node given a set of Nodes
virtual ~Model()
Delete the Model
Expression* getExpression(int index) throw(HAPI::ExceptionHugin)
Return the Expression associated with a pecific configuration of the Nodes in the Model
NodeList getNodes() throw(HAPI::ExceptionHugin)
Return a NodeList containing the Nodes in Model
void setExpression(int index, Expression *newExpr) throw(HAPI::ExceptionHugin)
Associate an Expression with a specific configuration of the Model Nodes
int size() throw(HAPI::ExceptionHugin)
Return the number of configuration of the Nodes of Model
void setNumberOfSamplesPerInterval( int count ) throw(HAPI::ExceptionHugin)
Sets the number of values taken within each bounded interval of an interval parent when generating the conditional probability table for a node with interval parents
int getNumberOfSamplesPerInterval( ) throw(HAPI::ExceptionHugin)
Returns the number of values per interval used when generating the conditional probability table for a node with interval parents

Documentation

A Model is a compact description of a table. A model consists of a list of discrete nodes and a set of expressions (one expresion per configuration of states in the nodes.

Model(DiscreteChanceNode *belongsToNode, const NodeList& modelNodes) throw(HAPI::ExceptionHugin)
Construct a model over a discrete chance node given a set of Nodes

Model(UtilityNode *belongsToNode, const NodeList& modelNodes) throw(HAPI::ExceptionHugin)
Construct a model over a utility node given a set of Nodes

virtual ~Model()
Delete the Model

Expression* getExpression(int index) throw(HAPI::ExceptionHugin)
Return the Expression associated with a pecific configuration of the Nodes in the Model

NodeList getNodes() throw(HAPI::ExceptionHugin)
Return a NodeList containing the Nodes in Model

void setExpression(int index, Expression *newExpr) throw(HAPI::ExceptionHugin)
Associate an Expression with a specific configuration of the Model Nodes

int size() throw(HAPI::ExceptionHugin)
Return the number of configuration of the Nodes of Model

void setNumberOfSamplesPerInterval( int count ) throw(HAPI::ExceptionHugin)
Sets the number of values taken within each bounded interval of an interval parent when generating the conditional probability table for a node with interval parents.

When generating the conditional probability table for a node with interval nodes as parents, a number of values are taken within each bounded interval of an interval parent. By default, the interval is divided into 25 subintervals, and the midpoints of these subintervals are then used in the computation of the value of the child.

Parameters:
count - The number of subintervals

int getNumberOfSamplesPerInterval( ) throw(HAPI::ExceptionHugin)
Returns the number of values per interval used when generating the conditional probability table for a node with interval parents
Returns:
int specifying the number of samples per interval


This class has no child classes.
See Also:
Expression
Node
NodeList

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