Class TruncateExpression
Expression class representing the truncate function.
Inherited Members
Namespace: HAPI
Assembly: hugincs-9.7-netstandard2.0-x64.dll
Syntax
public class TruncateExpression : CompositeExpression
Constructors
TruncateExpression(Expression, Expression)
Constructs 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:
Declaration
public TruncateExpression(Expression a, Expression b)
Parameters
| Type | Name | Description |
|---|---|---|
| Expression | a | the left truncation point or, in case of right truncation, the distribution to be truncated. |
| Expression | b | the right truncation point or, in case of left truncation, the distribution to be truncated. |
TruncateExpression(Expression, Expression, Expression)
Constructs a new TruncateExpression. This constructs a doubly truncated distribution. Truncation is only supported for continuous distributions.
Declaration
public TruncateExpression(Expression low, Expression distribution, Expression high)
Parameters
| Type | Name | Description |
|---|---|---|
| Expression | low | the left truncation point |
| Expression | distribution | the distribution to be truncated |
| Expression | high | the right truncation point |
Methods
GetOperator()
Returns the operator of this Expression.
Declaration
public override Expression.Operator GetOperator()
Returns
| Type | Description |
|---|---|
| Expression.Operator |