COM.hugin.HAPI
Class IntervalDDNode

java.lang.Object
  extended byCOM.hugin.HAPI.Node
      extended byCOM.hugin.HAPI.DiscreteNode
          extended byCOM.hugin.HAPI.DiscreteDecisionNode
              extended byCOM.hugin.HAPI.IntervalDDNode
All Implemented Interfaces:
java.lang.Cloneable

public class IntervalDDNode
extends DiscreteDecisionNode

Interval discrete decision node. Each state of an IntervalDDNode represents an interval.


Constructor Summary
IntervalDDNode(NetworkModel belongsTo)
          Constructs a new IntervalDDNode.
 
Method Summary
 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.DiscreteDecisionNode
getCategory, getRequisiteParents
 
Methods inherited from class COM.hugin.HAPI.DiscreteNode
caseIsSet, enterFinding, generateTable, getBelief, getCaseState, getEnteredFinding, getEntropy, getExpectedUtility, getKind, getMutualInformation, getNumberOfStates, getPropagatedFinding, getSampledState, getSensitivityConstants, getSensitivityConstants, getStateIndex, getStateLabel, retractFindings, selectState, setCaseState, setNumberOfStates, setStateLabel, unsetCase
 
Methods inherited from class COM.hugin.HAPI.Node
addParent, addToInputs, addToOutputs, clone, delete, evidenceIsEntered, evidenceIsPropagated, evidenceToPropagate, getAttribute, getAttributes, getChildren, getDomain, getEdgeConstraint, getHome, getHomeClass, getHomeDomain, getInstance, getJunctionTree, getLabel, getMaster, getModel, getName, getParents, getPosition, getSource, getTable, getUserData, isAlive, likelihoodIsEntered, likelihoodIsPropagated, removeFromInputs, removeFromOutputs, removeParent, reverseEdge, setAttribute, setAttributes, setEdgeConstraint, setLabel, setName, setPosition, setUserData, switchParent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntervalDDNode

public IntervalDDNode(NetworkModel belongsTo)
               throws ExceptionHugin
Constructs a new IntervalDDNode.

Method Detail

getStateValue

public double getStateValue(int s)
                     throws ExceptionHugin
Returns the low value of the interval associated with state s. To indicate the right endpoint of the rightmost interval, specify s equal to the number of states of this.

Throws:
ExceptionHugin

getStateIndex

public int getStateIndex(double value)
                  throws ExceptionHugin
Returns the index of the state (interval) matching the specified value. If there is no interval containing the specified value, -1 is returned.

Parameters:
value - an interval containing this value will be searched for
Returns:
the index of the state (interval) containing the specified value.
Throws:
ExceptionHugin

setStateValue

public void setStateValue(int s,
                          double v)
                   throws ExceptionHugin
Sets the low value of the interval associated with state s to v. To indicate the right endpoint of the rightmost interval, specify s equal to the number of states of this.

Throws:
ExceptionHugin