Public Member Functions

HAPI::AggregateExpression Class Reference

Expression class representing the aggregate() operator. More...

Inheritance diagram for HAPI::AggregateExpression:
HAPI::CompositeExpression HAPI::Expression

List of all members.

Public Member Functions

 AggregateExpression (Expression *frequency, Expression *severity)
 Construct a new AggregateExpression.
Expressionclone () const
 Clone the expression.
Operator getOperator () const
 Return the operator of the expression.

Detailed Description

Expression class representing the aggregate() operator.


Constructor & Destructor Documentation

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.

Parameters:
frequencythe distribution of the number of variables in the sum
severitythe distribution of each random variable in the sum

Member Function Documentation

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.


Copyright Hugin Expert A/S 1993-2024