|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCOM.hugin.HAPI.Node
COM.hugin.HAPI.DiscreteNode
COM.hugin.HAPI.DiscreteFunctionNode
COM.hugin.HAPI.NumberedDFNode
Numbered discrete function node. Each state of an NumberedDFNode represents a number.
Constructor Summary | |
NumberedDFNode(DiscreteFunctionNode node)
Constructs a new NumberedDFNode object corresponding to the given DiscreteFunctionNode object node . |
|
NumberedDFNode(NetworkModel belongsTo)
Constructs a new NumberedDFNode. |
Method Summary | |
double |
getQuantile(double probability)
Returns the quantile corresponding to the specified probability argument of the inverse cumulative
distribution function. |
int |
getStateIndex(double value)
Returns the index of the state matching the specified value. |
double |
getStateValue(int s)
Returns the value associated with a particular state of this NumberedDFNode. |
void |
setStateValue(int s,
double v)
Sets the value associated with a particular state of this NumberedDFNode. |
Methods inherited from class COM.hugin.HAPI.DiscreteFunctionNode |
getCategory |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NumberedDFNode(NetworkModel belongsTo) throws ExceptionHugin
public NumberedDFNode(DiscreteFunctionNode node) throws ExceptionHugin
node
. The new
object will be identical to node
(that is, same
parents, same table, etc.) except for its type.
As a side-effect, the object node
dies (that
is, becomes "not-alive"). Moreover, all (output and temporal)
clones associated with node
also die.
Method Detail |
public double getStateValue(int s) throws ExceptionHugin
getStateValue
in interface NumericDiscreteNode
s
- the index of the state in question.
ExceptionHugin
public int getStateIndex(double value) throws ExceptionHugin
getStateIndex
in interface NumericDiscreteNode
value
- the state value of the state to be searched for
ExceptionHugin
public void setStateValue(int s, double v) throws ExceptionHugin
setStateValue
in interface NumericDiscreteNode
s
- the index of the state in question.v
- the new value for state s
.
ExceptionHugin
public double getQuantile(double probability) throws ExceptionHugin
probability
argument of the inverse cumulative
distribution function.
getQuantile
in interface NumericDiscreteNode
ExceptionHugin
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |