Click or drag to resize

ChiSquareDistribution Class

Generates central chi-square distributed random numbers.
Inheritance Hierarchy
SystemObject
  Altaxo.Calc.Probability.OldProbabilityDistribution
    Altaxo.Calc.Probability.OldGammaDistribution
      Altaxo.Calc.Probability.OldChiSquareDistribution

Namespace: Altaxo.Calc.Probability.Old
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public class ChiSquareDistribution : GammaDistribution

The ChiSquareDistribution type exposes the following members.

Constructors
 NameDescription
Public methodChiSquareDistribution(Double)Initializes a new instance of the ChiSquareDistribution class
Public methodChiSquareDistribution(Double, RandomGenerator)Initializes a new instance of the ChiSquareDistribution class
Top
Properties
 NameDescription
Public propertyFreedom 
Public propertyGeneratorReturns the random generator used by the distribution to generate the random values.
(Inherited from ProbabilityDistribution)
Public propertyLocation
(Inherited from GammaDistribution)
Public propertyOrder
(Inherited from GammaDistribution)
Top
Methods
 NameDescription
Public methodCDF
(Overrides GammaDistributionCDF(Double))
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodInitialize
(Inherited from GammaDistribution)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodNextDouble 
Public methodPDF
(Overrides GammaDistributionPDF(Double))
Public methodQuantile
(Overrides GammaDistributionQuantile(Double))
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
 NameDescription
Protected field_invTheta
(Inherited from GammaDistribution)
Protected fieldalgorithmGD
(Inherited from GammaDistribution)
Protected fieldalpha
(Inherited from GammaDistribution)
Protected fieldb
(Inherited from GammaDistribution)
Protected fieldc
(Inherited from GammaDistribution)
Protected fieldd
(Inherited from GammaDistribution)
Protected fieldexponentialDistribution
(Inherited from GammaDistribution)
Protected fieldF 
Protected fieldgeneratorPointer to generator.
(Inherited from ProbabilityDistribution)
Protected fieldnormalDistribution
(Inherited from GammaDistribution)
Protected fieldq0
(Inherited from GammaDistribution)
Protected fieldr
(Inherited from GammaDistribution)
Protected fields
(Inherited from GammaDistribution)
Protected fields2
(Inherited from GammaDistribution)
Protected fieldscale
(Inherited from GammaDistribution)
Protected fieldsi
(Inherited from GammaDistribution)
Top
Remarks
C#
Generates random deviates from a central chi-square distribution with
f degrees of freedom. f must be positive.
The density of this distribution is:


               -f/2   f/2-1  -x/2
              2      x      e
 p (x) dx =  --------------------- dx  for x > 0
  f               Gamma(f/2)

          =  0                         otherwise

The calculation uses the relation between chi-square and gamma distribution:

 ChiSquare(f) = GammaDistribution(f/2,1/2)

References:
   K. Behnen, G. Neuhaus, "Grundkurs Stochastik", Teubner Studienbuecher
   Mathematik, Teubner Verlag, Stuttgart, 1984.
See Also