Interval discrete chance node. Each state represents an interval. More...
Public Member Functions | |
IntervalDCNode * | clone () const |
Clone this IntervalDCNode object. | |
IntervalDCNode * | createTemporalClone () |
Construct a temporal clone of this IntervalDCNode object. | |
double | getQuantile (double probability) const |
Return the quantile corresponding to the specified probability argument of the inverse cumulative distribution function. | |
Index | getStateIndex (double value) const |
Return the index of the state (interval) matching the specified value. | |
double | getStateValue (size_t state) const |
Return the value associated with the specified state. | |
IntervalDCNode (DiscreteNode *node) | |
Construct a new IntervalDCNode object corresponding to the given DiscreteNode object node . | |
IntervalDCNode (NetworkModel *nm) | |
Create a new IntervalDCNode in the given NetworkModel. | |
void | setStateValue (size_t state, double value) |
Associate a value with the specified state. |
Interval discrete chance node. Each state represents an interval.
HAPI::IntervalDCNode::IntervalDCNode | ( | DiscreteNode * | node ) |
Construct a new IntervalDCNode object corresponding to the given DiscreteNode object 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
is deleted. And if node
is an output node, then all output clone objects associated with the node are also deleted.
IntervalDCNode* HAPI::IntervalDCNode::clone | ( | ) | const [virtual] |
Clone this IntervalDCNode object.
Implements HAPI::Node.
IntervalDCNode* HAPI::IntervalDCNode::createTemporalClone | ( | ) | [virtual] |
Construct a temporal clone of this IntervalDCNode object.
Implements HAPI::Node.
Index HAPI::IntervalDCNode::getStateIndex | ( | double | value ) | const |
Return the index of the state (interval) matching the specified value.
If there is no interval containing the specified value, -1 is returned.
value | an interval containing this value will be searched for |
void HAPI::IntervalDCNode::setStateValue | ( | size_t | state, |
double | value | ||
) |
Associate a value with the specified state.
state | the state for which the value is specified |
value | the value to specify |