Expression class representing the probability() operator. More...
Public Member Functions | |
Expression * | clone () const |
Clone the expression. | |
Operator | getOperator () const |
Return the operator of the expression. | |
ProbabilityExpression (Expression *condition) | |
Construct a new ProbabilityExpression. |
Expression class representing the probability() operator.
HAPI::ProbabilityExpression::ProbabilityExpression | ( | Expression * | condition ) | [inline] |
Construct a new ProbabilityExpression.
This is used for computing values of FunctionNodes that depend on the probabilities of individual states of a DiscreteNode. The argument must be a boolean expression containing exactly one node, which must be a discrete parent of the FunctionNode.
condition | a boolean expression |
Expression* HAPI::ProbabilityExpression::clone | ( | ) | const [inline, virtual] |
Clone the expression.
Implements HAPI::Expression.
Operator HAPI::ProbabilityExpression::getOperator | ( | ) | const [inline, virtual] |
Return the operator of the expression.
Implements HAPI::CompositeExpression.