Class COptQuestPoissonRandomVariable


public class COptQuestPoissonRandomVariable extends COptQuestUserControlledVariable
A random variable with a Poisson distribution: the number of events in a fixed interval, when the events occur at random at an average rate of lambda for each interval. lambda must be greater than 0. The value is a whole number, and its mean and its variance are both lambda.

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

See Also:
  • Constructor Details

    • COptQuestPoissonRandomVariable

      public COptQuestPoissonRandomVariable(String name, double lambda) throws COptQuestException
      Constructs a new Poisson random variable with the specified name and rate parameter.
      Parameters:
      name - the name/identifier of this random variable (used for reporting, logging, or display purposes)
      lambda - the rate parameter (expected number of events, λ > 0)
      Throws:
      COptQuestException