|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--COM.hugin.HAPI.Node
|
+--COM.hugin.HAPI.ContinuousChanceNode
Represents continuous chance nodes with (conditional) Gaussian distributions. Continuous chance nodes are also sometimes called CG nodes (CG for conditional Gaussian).
| Constructor Summary | |
ContinuousChanceNode(NetworkModel initBelongsTo)
Constructs a new continuous chance node. |
|
| Method Summary | |
boolean |
caseIsSet(int c)
Returns 'true' if a value has been set for this ContinuousChanceNode in case 'c'; otherwise, returns 'false'. |
void |
delete()
Deletes this ContinuousChanceNode. |
void |
enterValue(double value)
Enters evidence (observation of the value) for this ContinuousChanceNode. |
double |
getAlpha(int i)
Returns the alpha component of the CG distribution of this ContinuousChanceNode given the discrete parent configuration corresponding to 'i'. |
double |
getBeta(ContinuousChanceNode parent,
int i)
Returns the beta component of the CG distribution of this ContinuousChanceNode given a continuous parent and the discrete parent configuration corresponding to 'i'. |
double |
getCaseValue(int c)
Returns the value set for this ContinuousChanceNode in case 'c'. |
NetworkModel.Category |
getCategory()
Returns the Category for this ContinuousChanceNode. |
Table |
getDistribution()
Returns the distribution for this continuous node. |
double |
getEnteredValue()
Returns the evidence (value) entered for this ContinuousChanceNode. |
double |
getGamma(int i)
Returns the gamma component of the CG distribution of this ContinuousChanceNode given the discrete parent configuration corresponding to 'i'. |
NetworkModel.Kind |
getKind()
Returns the Kind for this ContinuousChanceNode. |
double |
getMean()
Returns the mean of the marginal distribution of this ContinuousChanceNode. |
double |
getPropagatedValue()
Retrieves the value that has been propagated for this ContinuousChanceNode. |
double |
getSampledValue()
Returns the value of this ContinuousChanceNode for the configuration generated by the most recent call to Domain.simulate(). |
Table |
getTable()
Returns the table associated with this node. |
double |
getVariance()
Returns the variance of the marginal distribution of this ContinuousChanceNode. |
void |
retractFindings()
Retracts the evidence (value) entered for this ContinuousChanceNode. |
void |
setAlpha(double alpha,
int i)
Sets the alpha component of the CG distribution of this ContinuousChanceNode given the discrete parent configuration corresponding to 'i'. |
void |
setBeta(double beta,
ContinuousChanceNode parent,
int i)
Sets the beta component of the CG distribution of this ContinuousChanceNode given a continuous parent and the discrete parent configuration corresponding to 'i'. |
void |
setCaseValue(int c,
double value)
Sets the value of this ContinuousChanceNode to 'value' in case 'c'. |
void |
setGamma(double gamma,
int i)
Sets the gamma component of the CG distribution of this ContinuousChanceNode given the discrete parent configuration corresponding to 'i'. |
void |
unSetCase(int c)
Specifies that the value of this ContinuousChanceNode is 'unknown' for case 'c'. |
| Methods inherited from class COM.hugin.HAPI.Node |
addParent,
addToInputs,
addToOutputs,
evidenceIsEntered,
evidenceIsPropagated,
evidenceToPropagate,
getAttribute,
getAttributes,
getChildren,
getDomain,
getEdgeConstraint,
getHome,
getHomeClass,
getHomeDomain,
getInstance,
getJunctionTree,
getLabel,
getMaster,
getModel,
getName,
getParents,
getPosition,
getSource,
getUserData,
likelihoodIsEntered,
likelihoodIsPropagated,
removeFromInputs,
removeFromOutputs,
removeParent,
reverseEdge,
setAttribute,
setEdgeConstraint,
setLabel,
setName,
setPosition,
setUserData |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public ContinuousChanceNode(NetworkModel initBelongsTo)
throws ExceptionHugin,
ExceptionArgumentNotAlive
initBelongsTo - the NetworkModel (i.e., Class or Domain)
to which the new node should belong.| Method Detail |
public Table getTable()
throws ExceptionHugin
public Table getDistribution()
throws ExceptionHugin,
ExceptionObjectNotAlive
public double getMean()
throws ExceptionObjectNotAlive
public double getVariance()
throws ExceptionObjectNotAlive
public double getAlpha(int i)
throws ExceptionObjectNotAlive
i - the index of a discrete parent configuration.
public double getBeta(ContinuousChanceNode parent,
int i)
throws ExceptionObjectNotAlive,
ExceptionHugin
parent - a ContinuousChanceNode parent of this
ContinuousChanceNode.i - the index of a discrete parent configuration.
public double getGamma(int i)
throws ExceptionObjectNotAlive,
ExceptionHugin
i - the index of a discrete parent configuration.
public void setAlpha(double alpha,
int i)
throws ExceptionObjectNotAlive
alpha - the value of the alpha component.i - the index of a discrete parent configuration.
public void setBeta(double beta,
ContinuousChanceNode parent,
int i)
throws ExceptionObjectNotAlive,
ExceptionHugin
beta - the value of the beta component.parent - a ContinuousChanceNode parent of this
ContinuousChanceNode.i - the index of a discrete parent configuration.
public void setGamma(double gamma,
int i)
throws ExceptionObjectNotAlive,
ExceptionHugin
gamma - the value of the gamma component.i - the index of a discrete parent configuration.
public void enterValue(double value)
throws ExceptionObjectNotAlive,
ExceptionHugin
value - a real number representing the observation.
public double getEnteredValue()
throws ExceptionObjectNotAlive,
ExceptionHugin
public void retractFindings()
throws ExceptionObjectNotAlive,
ExceptionHugin
public double getPropagatedValue()
throws ExceptionObjectNotAlive,
ExceptionHugin
public NetworkModel.Category getCategory()
throws ExceptionObjectNotAlive
public NetworkModel.Kind getKind()
throws ExceptionObjectNotAlive
public void setCaseValue(int c,
double value)
throws ExceptionObjectNotAlive,
ExceptionHugin
c - the case index represented as an integer.value - the value represented as a real number.
public void unSetCase(int c)
throws ExceptionObjectNotAlive,
ExceptionHugin
c - the case index represented as an integer.
public boolean caseIsSet(int c)
throws ExceptionObjectNotAlive,
ExceptionHugin
c - the case index represented as an integer.
public double getCaseValue(int c)
throws ExceptionObjectNotAlive,
ExceptionHugin
public double getSampledValue()
throws ExceptionObjectNotAlive,
ExceptionHugin
public void delete()
throws ExceptionObjectNotAlive,
ExceptionHugin
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||