Class COptQuestExponentialRandomVariable


public class COptQuestExponentialRandomVariable extends COptQuestUserControlledVariable
A random variable with an exponential distribution: the time between events that occur at random at a constant average rate. scale, which must be greater than 0, is the mean time. The rate is 1 / scale.

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

See Also:
  • Constructor Details

    • COptQuestExponentialRandomVariable

      public COptQuestExponentialRandomVariable(String name, double scale) throws COptQuestException
      Constructs a new exponential random variable with the specified name and scale parameter.
      Parameters:
      name - the name/identifier of this random variable (used for reporting, logging, or display purposes)
      scale - the scale parameter of the exponential distribution (mean = scale, rate = 1/scale) must be positive (> 0)
      Throws:
      COptQuestException