Numbered discrete decision node. More...
Public Member Functions | |
| NumberedDFNode * | clone () const |
| Clone this NumberedDFNode object. | |
| NumberedDFNode * | createTemporalClone () |
| Construct a temporal clone of this NumberedDFNode 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 matching the specified value. | |
| double | getStateValue (size_t state) const |
| Return the value associated with state. | |
| NumberedDFNode (DiscreteFunctionNode *node) | |
Construct a new NumberedDFNode object corresponding to the given DiscreteFunctionNode object node. | |
| NumberedDFNode (NetworkModel *nm) | |
| Create a new NumberedDFNode in the given NetworkModel. | |
| void | setStateValue (size_t state, double value) |
| Set the value associated with state. | |
Numbered discrete decision node.
Each state of a NumberedDFNode represents a number.
| HAPI::NumberedDFNode::NumberedDFNode | ( | DiscreteFunctionNode * | node ) |
Construct a new NumberedDFNode object corresponding to the given DiscreteFunctionNode object 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.
| NumberedDFNode* HAPI::NumberedDFNode::clone | ( | ) | const [virtual] |
Clone this NumberedDFNode object.
Implements HAPI::Node.
| NumberedDFNode* HAPI::NumberedDFNode::createTemporalClone | ( | ) | [virtual] |
Construct a temporal clone of this NumberedDFNode object.
Implements HAPI::Node.
| Index HAPI::NumberedDFNode::getStateIndex | ( | double | value ) | const |
Return the index of the state matching the specified value.
If there is no (unique) state with the specified state value, -1 is returned.
| value | the state value of the state to be searched for |