Class COptQuestUniformRandomVariable


public class COptQuestUniformRandomVariable extends COptQuestUserControlledVariable
A random variable with a uniform distribution on [min, max]. Every value in the range is equally likely. max must be greater than min. The constructor that takes only a name uses the range [0, 1].

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

See Also:
  • Constructor Details

    • COptQuestUniformRandomVariable

      public COptQuestUniformRandomVariable(String name, double min, double max) throws COptQuestException
      Constructs a new uniform random variable with the specified name and range [min, max].
      Parameters:
      name - the name/identifier of this random variable (used for reporting, logging, or display purposes)
      min - the lower bound of the uniform distribution (inclusive)
      max - the upper bound of the uniform distribution (inclusive)
      Throws:
      COptQuestException
    • COptQuestUniformRandomVariable

      public COptQuestUniformRandomVariable(String name) throws COptQuestException
      Constructs a new uniform random variable with the specified name and the standard uniform range [0, 1].
      Parameters:
      name - the name/identifier of this random variable (used for reporting, logging, or display purposes)
      Throws:
      COptQuestException