Expression class representing the PERT distribution. More...
Public Member Functions | |
Expression * | clone () 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. |
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.
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.
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.