Skip to main content

ChiSquared

Base class: Distribution

Models the distribution of the sum of squares of n (with default value 1.0) independent standard normal variables.

The probability density function is given by,

f(x∣n)=xn2−1e−x2\[Gamma](../gamma/index.md)(n2)2n2.f(x | n) = \frac{x^{\frac{n}{2} - 1} e^{-\frac{x}{2}}}{\[Gamma](../gamma/index.md)(\tfrac{n}{2})2^{\tfrac{n}{2}}}.

Constructors​

ChiSquared(const ChiSquared distribution) -> ChiSquared​

Copy constructor for ChiSquared distribution.

Parameters​

  • distribution: ChiSquared distribution to be copied

Symbols​

NameDescription
=Copy assignment operator for ChiSquared distribution.

Members​

NameDescription
maxReturns the maximum possible value from the distribution
minReturns the minimum possible value from the distribution
nDegrees of freedom parameter.
sampleSample from distribution.