Class COptQuestChiSquareRandomVariable


public class COptQuestChiSquareRandomVariable extends COptQuestUserControlledVariable
A random variable with a chi-squared distribution: the sum of the squares of df independent standard normal values. df, the degrees of freedom, is a positive integer. The mean is df.

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

See Also:
  • Constructor Details

    • COptQuestChiSquareRandomVariable

      public COptQuestChiSquareRandomVariable(String name, int df) throws COptQuestException
      Constructs a new chi-squared random variable with the specified name and degrees of freedom.
      Parameters:
      name - the name/identifier of this random variable (used for reporting, logging, or display purposes)
      df - the degrees of freedom for the chi-squared distribution (must be a positive integer ≥ 1)
      Throws:
      COptQuestException