Interval discrete decision node. More...
Public Member Functions | |
| IntervalDDNode * | clone () const |
| Clone this IntervalDDNode object. | |
| IntervalDDNode * | createTemporalClone () |
| Construct a temporal clone of this IntervalDDNode 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 state. | |
| IntervalDDNode (DiscreteNode *node) | |
Construct a new IntervalDDNode object corresponding to the given DiscreteNode object node. | |
| IntervalDDNode (NetworkModel *nm) | |
| Create a new IntervalDDNode in the given NetworkModel. | |
| void | setStateValue (size_t state, double value) |
| Set the value associated with state. | |
Interval discrete decision node.
Each state of an IntervalDDNode represents an interval.
| HAPI::IntervalDDNode::IntervalDDNode | ( | DiscreteNode * | node ) |
Construct a new IntervalDDNode 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.
| IntervalDDNode* HAPI::IntervalDDNode::clone | ( | ) | const [virtual] |
Clone this IntervalDDNode object.
Implements HAPI::Node.
| IntervalDDNode* HAPI::IntervalDDNode::createTemporalClone | ( | ) | [virtual] |
Construct a temporal clone of this IntervalDDNode object.
Implements HAPI::Node.
| Index HAPI::IntervalDDNode::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 |