Click or drag to resize
Accord.NET (logo)

ChiSquareDistributionRandom Method (Int32, Int32, Random)

Generates a random vector of observations from the Chi-Square distribution with the given parameters.

Namespace:  Accord.Statistics.Distributions.Univariate
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
public static double[] Random(
	int degreesOfFreedom,
	int samples,
	Random source
)
Request Example View Source

Parameters

degreesOfFreedom
Type: SystemInt32
samples
Type: SystemInt32
source
Type: SystemRandom

Return Value

Type: Double
An array of double values sampled from the specified Chi-Square distribution.
See Also