Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

HAPI::Table Class Reference

List of all members.

Detailed Description

Hugin uses Tables for representing the conditional probability and utility potentials of individual Nodes, the probability and utility potentials on separators and Cliques of JunctionTrees, evidence potentials, etc.

A potential is a function from the state space of a set of variables into the set of real numbers. A Table is a representation of a potential.


Public Member Functions

 ~Table () throw ()
 Release the memory resources used by the application-owned Table object.

double getCovariance (size_t config, ContinuousChanceNode *node1, ContinuousChanceNode *node2) const
 Return the covariance of the conditional distribution.

NumberList getData () const
 Retrieve a vector holding the actual discrete data.

double getMean (size_t config, ContinuousChanceNode *node) const
 Return the mean value of the conditional probability distribution.

NodeList getNodes () const
 Retrieve a NodeList containing pointers to the nodes associated with this table.

size_t getSize () const
 Return the size of this table.

double getVariance (size_t config, ContinuousChanceNode *node) const
 Return the variance of the conditional probability distribution.

void reorderNodes (const NodeList &order)
 Reorder the node list of this table to follow the order of the members in the NodeList.

void setData (const NumberList &data)
 Set the table data to be a copy of the parameter.


Member Function Documentation

double HAPI::Table::getCovariance size_t  config,
ContinuousChanceNode node1,
ContinuousChanceNode node2
const
 

Return the covariance of the conditional distribution.

The covariance of the conditional distribution of the continuous nodes node1 and node2 given the discrete state configuration config.

Parameters:
config size_t - Index of the discrete configuration.
node1 ContinuousChanceNode*
node2 ContinuousChanceNode*
Returns:
A double-precision real value.

NumberList HAPI::Table::getData  )  const
 

Retrieve a vector holding the actual discrete data.

This vector is a one-dimensional (row-major) representation of the multi-dimensional array.

Returns:
A Standard C++ Library vector of doubles.

double HAPI::Table::getMean size_t  config,
ContinuousChanceNode node
const
 

Return the mean value of the conditional probability distribution.

The mean value of the conditional probability distribution of the continuous chance node node given the discrete state configuration config is returned.

Parameters:
config size_t - Index of the discrete configuration.
node ContinuousChanceNode*
Returns:
A double-precision real value.

NodeList HAPI::Table::getNodes  )  const
 

Retrieve a NodeList containing pointers to the nodes associated with this table.

Returns:
A Standard C++ Library vector of pointers to Nodes.

size_t HAPI::Table::getSize  )  const
 

Return the size of this table.

Returns:
size_t

double HAPI::Table::getVariance size_t  config,
ContinuousChanceNode node
const
 

Return the variance of the conditional probability distribution.

The variance of the conditional probability of the continuous node node given the discrete state configuration config.

Parameters:
config size_t - Index of the discrete configuration.
node ContinuousChanceNode*
Returns:
A double-precision real value.

void HAPI::Table::reorderNodes const NodeList &  order  ) 
 

Reorder the node list of this table to follow the order of the members in the NodeList.

order must be a permutation of the node list of this table.

Parameters:
order NodeList

void HAPI::Table::setData const NumberList &  data  ) 
 

Set the table data to be a copy of the parameter.

Parameters:
data NumberList


Copyright Hugin Expert A/S 1993-2004