Public Member Functions

HAPI::TruncateExpression Class Reference

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

Inheritance diagram for HAPI::TruncateExpression:
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.
 TruncateExpression (Expression *low, Expression *distribution, Expression *high)
 Construct a new TruncateExpression.
 TruncateExpression (Expression *a, Expression *b)
 Construct a new TruncateExpression.

Detailed Description

Expression class representing the truncate() operator.


Constructor & Destructor Documentation

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.

Parameters:
lowthe left truncation point
distributionthe distribution to be truncated
highthe 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:

Parameters:
athe left truncation point or, in case of right truncation, the distribution to be truncated
bthe right truncation point or, in case of left truncation, the distribution to be truncated

Member Function Documentation

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.


Copyright Hugin Expert A/S 1993-2024