HAPI::IntervalDCNode Class Reference

Interval discrete chance node. Each state represents an interval. More...

Inheritance diagram for HAPI::IntervalDCNode:
HAPI::DiscreteChanceNode HAPI::DiscreteNode HAPI::Node

List of all members.

Public Member Functions

IntervalDCNodeclone () const
 Clone this IntervalDCNode object.
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 (NetworkModel *nm)
 Create a new IntervalDCNode in the given NetworkModel.
void setStateValue (size_t state, double value)
 Associate a value with the specified state.

Detailed Description

Interval discrete chance node. Each state represents an interval.


Member Function Documentation

IntervalDCNode* HAPI::IntervalDCNode::clone (  )  const [virtual]

Clone 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.

Parameters:
value an interval containing this value will be searched for
Returns:
the index of the state (interval) containing the specified value.
void HAPI::IntervalDCNode::setStateValue ( size_t  state,
double  value 
)

Associate a value with the specified state.

Parameters:
state the state for which the value is specified
value the value to specify

Copyright Hugin Expert A/S 1993-2010