Class COptQuestNormalRandomVariable


public class COptQuestNormalRandomVariable extends COptQuestUserControlledVariable
A random variable with a normal distribution. The values spread symmetrically around mean. sigma, which must be greater than 0, is the standard deviation. About 95 percent of the values are within 2 * sigma of mean.

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

See Also:
  • Constructor Details

    • COptQuestNormalRandomVariable

      public COptQuestNormalRandomVariable(String name, double mean, double sigma) throws COptQuestException
      Constructs a new normal random variable with the specified name, mean, and standard deviation.
      Parameters:
      name - the name/identifier of this random variable (used for reporting, logging, or display purposes)
      mean - the mean (location parameter, μ) of the normal distribution
      sigma - the standard deviation (scale parameter, σ > 0) of the normal distribution
      Throws:
      COptQuestException