A FunctionNode represents a real-valued function. More...
Public Member Functions | |
FunctionNode * | clone () const |
Clone this FunctionNode object. | |
FunctionNode (NetworkModel *nm) | |
Create a new FunctionNode in the given NetworkModel. | |
Category | getCategory () const |
Return the node category. | |
Kind | getKind () const |
Return the node kind. | |
double | getSampledValue () const |
Return the sampled value of this FunctionNode. | |
double | getValue () const |
Return the value of this FunctionNode. |
A FunctionNode represents a real-valued function.
This function is specified using expressions (which may refer to the values of the parents) in a Model.
HAPI::FunctionNode::FunctionNode | ( | NetworkModel * | nm | ) |
Create a new FunctionNode in the given NetworkModel.
FunctionNode* HAPI::FunctionNode::clone | ( | ) | const [virtual] |
Clone this FunctionNode object.
Implements HAPI::Node.
Category HAPI::FunctionNode::getCategory | ( | ) | const [inline, virtual] |
Kind HAPI::FunctionNode::getKind | ( | ) | const [inline, virtual] |
double HAPI::FunctionNode::getSampledValue | ( | ) | const |
Return the sampled value of this FunctionNode.
The value is computed using the function associated with the node. If the function refers to other nodes, then the values of those nodes are derived from the results of the most recent simulation operation.
double HAPI::FunctionNode::getValue | ( | ) | const |
Return the value of this FunctionNode.
The value is computed using the function associated with the node. If the function refers to other nodes, then the values of those nodes are derived from the results of the most recent inference operation.