HAPI::PERTDistribution Class Reference

Expression class representing the PERT distribution. More...

Inheritance diagram for HAPI::PERTDistribution:
HAPI::CompositeExpression HAPI::Expression

List of all members.

Public Member Functions

Expressionclone () const
 Clone the expression.
Operator getOperator () const
 Return the operator of the expression.
 PERTDistribution (Expression *min, Expression *mode, Expression *max, Expression *shape)
 Construct a new PERTDistribution.
 PERTDistribution (Expression *min, Expression *mode, Expression *max)
 Construct a new PERTDistribution.

Detailed Description

Expression class representing the PERT distribution.

A PERT distribution is a Beta distribution specified by the minimum, the most likely (also known as the mode), and the maximum value of the distribution. An extra optional argument can be used to modify the shape of the distribution.


Constructor & Destructor Documentation

HAPI::PERTDistribution::PERTDistribution ( Expression min,
Expression mode,
Expression max 
) [inline]

Construct a new PERTDistribution.

This distribution has default shape (corresponding to shape=4).

HAPI::PERTDistribution::PERTDistribution ( Expression min,
Expression mode,
Expression max,
Expression shape 
) [inline]

Construct a new PERTDistribution.

The fourth argument (the shape parameter) must be a positive number.


Member Function Documentation

Expression* HAPI::PERTDistribution::clone (  )  const [inline, virtual]

Clone the expression.

Implements HAPI::Expression.

Operator HAPI::PERTDistribution::getOperator (  )  const [inline, virtual]

Return the operator of the expression.

Implements HAPI::CompositeExpression.


Copyright Hugin Expert A/S 1993-2010