|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCOM.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 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[] newData)
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 ExceptionHugin
ExceptionHugin
public double getDataItem(int index) throws ExceptionHugin
index
- the index.
ExceptionHugin
public NodeList getNodes() throws ExceptionHugin
ExceptionHugin
public int getSize() throws ExceptionHugin
ExceptionHugin
public void setData(double[] newData) throws ExceptionHugin
newData
- 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.
ExceptionHugin
public void setDataItem(int index, double value) throws 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'.
ExceptionHugin
public double getVariance(int i, ContinuousChanceNode node) throws ExceptionHugin
i
- the index of the discrete configuration.node
- the ContinuousChanceNode in question.
ExceptionHugin
public double getMean(int i, ContinuousChanceNode node) throws ExceptionHugin
i
- the index of the discrete configuration.node
- the ContinuousChanceNode in question.
ExceptionHugin
public double getCovariance(int i, ContinuousChanceNode node1, ContinuousChanceNode node2) throws ExceptionHugin
i
- the index of the discrete configuration.node1
- one of the ContinuousChanceNodes in question.node2
- the other ContinuousChanceNode.
ExceptionHugin
public void reorderNodes(NodeList nodes) throws ExceptionHugin
nodes
- the new order (which must be a permutation of the
current order) of the Nodes of this Table.
ExceptionHugin
public void delete() throws ExceptionObjectNotAlive
ExceptionObjectNotAlive
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |