|
|||||||||
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.DiscreteChanceNode
COM.hugin.HAPI.IntervalDCNode
Interval discrete chance node. Each state of an IntervalDCNode represents an interval.
Constructor Summary | |
IntervalDCNode(DiscreteNode node)
Constructs a new IntervalDCNode object corresponding to the given DiscreteNode object node . |
|
IntervalDCNode(NetworkModel belongsTo)
Constructs a new IntervalDCNode. |
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 (interval) matching the specified value. |
double |
getStateValue(int s)
Returns the low value of the interval associated with state s . |
void |
setStateValue(int s,
double v)
Sets the low value of the interval associated with state s to v . |
Methods inherited from class COM.hugin.HAPI.DiscreteChanceNode |
computeSensitivityData, getCategory, getExperienceTable, getFadingTable, hasExperienceTable, hasFadingTable |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IntervalDCNode(NetworkModel belongsTo) throws ExceptionHugin
public IntervalDCNode(DiscreteNode node) throws ExceptionHugin
node
.
(node
must be a chance or a decision 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
s
. To indicate the right endpoint of the rightmost
interval, specify s
equal to the number of states
of this IntervalDCNode.
getStateValue
in interface NumericDiscreteNode
s
- index of the state
ExceptionHugin
public int getStateIndex(double value) throws ExceptionHugin
getStateIndex
in interface NumericDiscreteNode
value
- an interval containing this value will be searched for
ExceptionHugin
public void setStateValue(int s, double v) throws ExceptionHugin
s
to v
. To indicate the right endpoint
of the rightmost interval, specify s
equal to the
number of states of this IntervalDCNode.
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 |