COM.hugin.HAPI
Class TruncateExpression

java.lang.Object
  extended byCOM.hugin.HAPI.Expression
      extended byCOM.hugin.HAPI.CompositeExpression
          extended byCOM.hugin.HAPI.TruncateExpression

public class TruncateExpression
extends CompositeExpression

Expression class representing the truncate() operator.


Field Summary
 
Fields inherited from class COM.hugin.HAPI.Expression
H_OPERATOR_ABS, H_OPERATOR_ADD, H_OPERATOR_AND, H_OPERATOR_BETA, H_OPERATOR_BINOMIAL, H_OPERATOR_BOOLEAN, H_OPERATOR_CEIL, H_OPERATOR_COS, H_OPERATOR_COSH, H_OPERATOR_DISTRIBUTION, H_OPERATOR_DIVIDE, H_OPERATOR_EQUALS, H_OPERATOR_EXP, H_OPERATOR_EXPONENTIAL, H_OPERATOR_FLOOR, H_OPERATOR_GAMMA, H_OPERATOR_GEOMETRIC, H_OPERATOR_GREATER_THAN, H_OPERATOR_GREATER_THAN_OR_EQUALS, H_OPERATOR_IF, H_OPERATOR_LABEL, H_OPERATOR_LESS_THAN, H_OPERATOR_LESS_THAN_OR_EQUALS, H_OPERATOR_LOG, H_OPERATOR_LOG10, H_OPERATOR_LOG2, H_OPERATOR_LOGNORMAL, H_OPERATOR_MAX, H_OPERATOR_MIN, H_OPERATOR_MOD, H_OPERATOR_MULTIPLY, H_OPERATOR_NEGATE, H_OPERATOR_NEGATIVEBINOMIAL, H_OPERATOR_NODE, H_OPERATOR_NOISYOR, H_OPERATOR_NORMAL, H_OPERATOR_NOT, H_OPERATOR_NOT_EQUALS, H_OPERATOR_NUMBER, H_OPERATOR_OR, H_OPERATOR_PERT, H_OPERATOR_POISSON, H_OPERATOR_POWER, H_OPERATOR_SIN, H_OPERATOR_SINH, H_OPERATOR_SQRT, H_OPERATOR_SUBTRACT, H_OPERATOR_TAN, H_OPERATOR_TANH, H_OPERATOR_TRIANGULAR, H_OPERATOR_TRUNCATE, H_OPERATOR_UNIFORM, H_OPERATOR_WEIBULL
 
Constructor Summary
TruncateExpression(Expression a, Expression b)
          Constructs a new TruncateExpression.
TruncateExpression(Expression low, Expression distribution, Expression high)
          Constructs a new TruncateExpression.
 
Method Summary
 int getOperator()
          Returns the operator of this Expression.
 
Methods inherited from class COM.hugin.HAPI.CompositeExpression
getOperands, isCompositeExpression
 
Methods inherited from class COM.hugin.HAPI.Expression
clone, delete, expressionToString, isConstantExpression, isNodeExpression, stringToExpression, stringToExpression
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TruncateExpression

public TruncateExpression(Expression low,
                          Expression distribution,
                          Expression high)
                   throws ExceptionHugin
Constructs a new TruncateExpression. This constructs a doubly truncated distribution. Truncation is only supported for continuous distributions.

Parameters:
low - the left truncation point
distribution - the distribution to be truncated
high - the right truncation point

TruncateExpression

public TruncateExpression(Expression a,
                          Expression b)
                   throws ExceptionHugin
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:

Parameters:
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
Method Detail

getOperator

public int getOperator()
Returns the operator of this Expression.

Specified by:
getOperator in class Expression