Expression class representing the aggregate() operator. More...
Public Member Functions | |
AggregateExpression (Expression *frequency, Expression *severity) | |
Construct a new AggregateExpression. | |
Expression * | clone () const |
Clone the expression. | |
Operator | getOperator () const |
Return the operator of the expression. |
Expression class representing the aggregate() operator.
HAPI::AggregateExpression::AggregateExpression | ( | Expression * | frequency, |
Expression * | severity | ||
) | [inline] |
Construct a new AggregateExpression.
This represents the distribution of the sum of a random number of independent identically distributed random variables. The distribution of the number of variables is specified by the frequency
argument (which must be a numbered node), and the distribution of each random variable in the sum is specified by the severity
argument (which must be an interval node).
This expression is only allowed for a DiscreteFunctionNode of interval subtype.
frequency | the distribution of the number of variables in the sum |
severity | the distribution of each random variable in the sum |
Expression* HAPI::AggregateExpression::clone | ( | ) | const [inline, virtual] |
Clone the expression.
Implements HAPI::Expression.
Operator HAPI::AggregateExpression::getOperator | ( | ) | const [inline, virtual] |
Return the operator of the expression.
Implements HAPI::CompositeExpression.