Class COptQuestLogNormalRandomVariable


public class COptQuestLogNormalRandomVariable extends COptQuestUserControlledVariable
A random variable with a log-normal distribution: a value whose logarithm has a normal distribution. Its value is positive. shape and scale must both be greater than 0:
  • shape is the standard deviation of the logarithm of the value.
  • scale is the median of the value. The logarithm of scale is the mean of the logarithm of the value.
The mean of the value is scale * exp(shape^2 / 2).

The engine draws a new value at the start of every replication. The probability distribution is COptQuestLogNormalDistribution.

See Also:
  • Constructor Details

    • COptQuestLogNormalRandomVariable

      public COptQuestLogNormalRandomVariable(String name, double shape, double scale) throws COptQuestException
      Constructs a new log-normal random variable with the specified name, shape, and scale parameters.
      Parameters:
      name - the name/identifier of this random variable (used for reporting, logging, or display purposes)
      shape - the shape parameter, greater than 0: the standard deviation of log(X)
      scale - the scale parameter, greater than 0: the median of X, so log(scale) is the mean of log(X)
      Throws:
      COptQuestException