Public Member Functions

HAPI::UtilityNode Class Reference

A UtilityNode represents a utility function. More...

Inheritance diagram for HAPI::UtilityNode:
HAPI::Node

List of all members.

Public Member Functions

UtilityNodeclone () const
 Clone this UtilityNode object.
UtilityNodecreateTemporalClone ()
 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.

Detailed Description

A UtilityNode represents a utility function.

The utility function can depend on discrete chance and discrete decision nodes.


Member Function Documentation

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]

Return the node category.

Returns:
H_CATEGORY_UTILITY

Implements HAPI::Node.

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]

Return the node kind.

Returns:
H_KIND_OTHER

Implements HAPI::Node.

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.


Copyright Hugin Expert A/S 1993-2024