A UtilityNode represents a utility function. More...
Public Member Functions | |
UtilityNode * | clone () const |
Clone this UtilityNode object. | |
UtilityNode * | createTemporalClone () |
Construct a temporal clone of this UtilityNode object. | |
Category | getCategory () const |
Return the node category. | |
Number | getExpectedUtility () const |
Return the expected utility associated with this UtilityNode. | |
Kind | getKind () const |
Return the node kind. | |
Number | getMaxUtility () const |
Return the maximum possible utility associated with this UtilityNode. | |
Number | getMinUtility () const |
Return the minimum possible utility associated with this UtilityNode. | |
Number | getSampledUtility () const |
Return the sampled utility associated with this UtilityNode. | |
Number | getVarianceOfUtility () const |
Return the variance of the utility associated with this UtilityNode. | |
UtilityNode (NetworkModel *nm) | |
Create a new UtilityNode in the given NetworkModel. |
A UtilityNode represents a utility function.
The utility function can depend on discrete chance and discrete decision nodes.
UtilityNode* HAPI::UtilityNode::clone | ( | ) | const [virtual] |
Clone this UtilityNode object.
Implements HAPI::Node.
UtilityNode* HAPI::UtilityNode::createTemporalClone | ( | ) | [virtual] |
Construct a temporal clone of this UtilityNode object.
Implements HAPI::Node.
Category HAPI::UtilityNode::getCategory | ( | ) | const [inline, virtual] |
Number HAPI::UtilityNode::getExpectedUtility | ( | ) | const |
Return the expected utility associated with this UtilityNode.
This is the utility value computed by the most recent inference operation.
Kind HAPI::UtilityNode::getKind | ( | ) | const [inline, virtual] |
Number HAPI::UtilityNode::getMaxUtility | ( | ) | const |
Return the maximum possible utility associated with this UtilityNode.
This is the largest utility value for this node with a positive probability as computed by the most recent inference operation.
Number HAPI::UtilityNode::getMinUtility | ( | ) | const |
Return the minimum possible utility associated with this UtilityNode.
This is the smallest utility value for this node with a positive probability as computed by the most recent inference operation.
Number HAPI::UtilityNode::getSampledUtility | ( | ) | const |
Return the sampled utility associated with this UtilityNode.
This is the utility value determined by the most recent simulation operation.
Number HAPI::UtilityNode::getVarianceOfUtility | ( | ) | const |
Return the variance of the utility associated with this UtilityNode.
This is the variance of the utility value computed by the most recent inference operation.