Class COptQuestParetoRandomVariable


public class COptQuestParetoRandomVariable extends COptQuestUserControlledVariable
A random variable with a Pareto (Type I) distribution. Its values have a long upper tail: most values are near the smallest value, and a few are much larger.
  • gamma, the shape parameter or tail index, must be greater than 0. A smaller gamma gives a longer tail.
  • loc, the location parameter, is the shift of the distribution. It can be any finite value.
  • scale, the scale parameter, must be greater than 0. The smallest possible value is loc + scale.
The probability density is pdf(x) = (gamma / scale) * ((x - loc) / scale)^(-gamma - 1) for x >= loc + scale.

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

See Also:
  • Constructor Details

    • COptQuestParetoRandomVariable

      public COptQuestParetoRandomVariable(String name, double gamma, double loc, double scale) throws COptQuestException
      Constructs a new Pareto random variable with the specified name, shape, location, and scale parameters.
      Parameters:
      name - the name/identifier of this random variable (used for reporting, logging, or display purposes)
      gamma - the shape parameter (tail index, γ > 0)
      loc - the location parameter (shift, may be any finite value)
      scale - the scale parameter (> 0); the minimum possible value is loc + scale
      Throws:
      COptQuestException