COM.hugin.HAPI
Class LogNormalDistribution

java.lang.Object
  extended by COM.hugin.HAPI.Expression
      extended by COM.hugin.HAPI.CompositeExpression
          extended by COM.hugin.HAPI.LogNormalDistribution

public class LogNormalDistribution
extends CompositeExpression

Expression class representing the LogNormal distribution.


Field Summary
 
Fields inherited from class COM.hugin.HAPI.Expression
H_OPERATOR_ABS, H_OPERATOR_ADD, H_OPERATOR_AGGREGATE, 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_PROBABILITY, H_OPERATOR_QUANTILE, H_OPERATOR_SIN, H_OPERATOR_SINH, H_OPERATOR_SQRT, H_OPERATOR_STATE_INDEX, H_OPERATOR_SUBTRACT, H_OPERATOR_TAN, H_OPERATOR_TANH, H_OPERATOR_TRIANGULAR, H_OPERATOR_TRUNCATE, H_OPERATOR_UNIFORM, H_OPERATOR_VARIANCE, H_OPERATOR_WEIBULL
 
Constructor Summary
LogNormalDistribution(Expression mean, Expression variance)
          Constructs a new LogNormalDistribution.
LogNormalDistribution(Expression mean, Expression variance, Expression location)
          Constructs a new LogNormalDistribution.
 
Method Summary
 int getOperator()
          Returns the operator of the Expression.
 
Methods inherited from class COM.hugin.HAPI.CompositeExpression
getOperands, isCompositeExpression
 
Methods inherited from class COM.hugin.HAPI.Expression
clone, expressionToString, isConstantExpression, isNodeExpression, stringToExpression
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogNormalDistribution

public LogNormalDistribution(Expression mean,
                             Expression variance)
                      throws ExceptionHugin
Constructs a new LogNormalDistribution. If X is a random variable with a log-normal distribution, then log(X) has a normal distribution.

Parameters:
mean - mean of log(X)
variance - variance of log(X) [note: not standard deviation]
Throws:
ExceptionHugin

LogNormalDistribution

public LogNormalDistribution(Expression mean,
                             Expression variance,
                             Expression location)
                      throws ExceptionHugin
Constructs a new LogNormalDistribution. If X is a random variable with a log-normal distribution, then log(X) has a normal distribution.

Parameters:
mean - mean of log(X)
variance - variance of log(X) [note: not standard deviation]
location - minimum value of X [i.e., log(X-location) has a normal distribution]
Throws:
ExceptionHugin
Method Detail

getOperator

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

Specified by:
getOperator in class Expression