|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--COM.hugin.HAPI.Table
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.
| Method Summary | |
void |
delete()
Deletes this Table. |
double |
getCovariance(int i,
ContinuousChanceNode node1,
ContinuousChanceNode node2)
Returns the covariance of a couple of ContinuousChanceNodes given a configuration of the discrete chance Nodes of this Table. |
double[] |
getData()
Returns a one-dimensional array of the discrete data of this Table. |
double |
getDataItem(int index)
Returns the data item at a particular index of the discrete data of this Table. |
double |
getMean(int i,
ContinuousChanceNode node)
Returns the mean of a ContinuousChanceNode given a configuration of the discrete chance Nodes of this Table. |
NodeList |
getNodes()
Returns a NodeList containing of the Nodes associated with this Table. |
int |
getSize()
Returns the size of this Table. |
double |
getVariance(int i,
ContinuousChanceNode node)
Returns the variance of a ContinuousChanceNode given a configuration of the discrete chance Nodes of this Table. |
void |
reorderNodes(NodeList nodes)
Reorders the list of Nodes of this Table. |
void |
setData(double[] data)
Sets the data of this Table. |
void |
setDataItem(int index,
double value)
Sets a particular data item for this Table. |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Method Detail |
public double[] getData()
throws ExceptionObjectNotAlive,
ExceptionHugin
public double getDataItem(int index)
throws ExceptionObjectNotAlive,
ExceptionHugin
index - the index.
public NodeList getNodes()
throws ExceptionObjectNotAlive,
ExceptionHugin
public int getSize()
throws ExceptionObjectNotAlive
public void setData(double[] data)
throws ExceptionObjectNotAlive,
ExceptionHugin
data - a one-dimensional array of doubles. The array is
interpreted as a (row-major) representation of a
multi-dimensional array indexed according to the order of the
Nodes of the Table.
public void setDataItem(int index,
double value)
throws ExceptionObjectNotAlive,
ExceptionHugin
index - interpreted as the index of a one-dimensional
(row-major) representation of the actual multi-dimensional array.value - the new value of the data item at 'index'.
public double getVariance(int i,
ContinuousChanceNode node)
throws ExceptionObjectNotAlive,
ExceptionHugin
i - the index of the discrete configuration.node - the ContinuousChanceNode in question.
public double getMean(int i,
ContinuousChanceNode node)
throws ExceptionObjectNotAlive,
ExceptionHugin
i - the index of the discrete configuration.node - the ContinuousChanceNode in question.
public double getCovariance(int i,
ContinuousChanceNode node1,
ContinuousChanceNode node2)
throws ExceptionObjectNotAlive,
ExceptionHugin
i - the index of the discrete configuration.node1 - one of the ContinuousChanceNodes in question.node2 - the other ContinuousChanceNode.
public void reorderNodes(NodeList nodes)
throws ExceptionObjectNotAlive,
ExceptionHugin
order - the new order (which must be a permutation of the
current order) of the Nodes of this Table.
public void delete()
throws ExceptionObjectNotAlive
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||