Expression class representing the truncate() operator. More...
Public Member Functions | |
Expression * | clone () const |
Clone the expression. | |
Operator | getOperator () const |
Return the operator of the expression. | |
TruncateExpression (Expression *a, Expression *b) | |
Construct a new TruncateExpression. | |
TruncateExpression (Expression *low, Expression *distribution, Expression *high) | |
Construct a new TruncateExpression. |
Expression class representing the truncate() operator.
HAPI::TruncateExpression::TruncateExpression | ( | Expression * | low, | |
Expression * | distribution, | |||
Expression * | high | |||
) | [inline] |
Construct a new TruncateExpression.
This constructs a doubly truncated distribution. Truncation is only supported for continuous distributions.
low | the left truncation point | |
distribution | the distribution to be truncated | |
high | the right truncation point |
HAPI::TruncateExpression::TruncateExpression | ( | Expression * | a, | |
Expression * | b | |||
) | [inline] |
Construct a new TruncateExpression.
This constructs a singly truncated distribution. Truncation is only supported for continuous distributions. The semantics of the arguments depend on whether the truncation is left or right:
a | the left truncation point or, in case of right truncation, the distribution to be truncated | |
b | the right truncation point or, in case of left truncation, the distribution to be truncated |
Expression* HAPI::TruncateExpression::clone | ( | ) | const [inline, virtual] |
Clone the expression.
Implements HAPI::Expression.
Operator HAPI::TruncateExpression::getOperator | ( | ) | const [inline, virtual] |
Return the operator of the expression.
Implements HAPI::CompositeExpression.