Click or drag to resize
Accord.NET (logo)

ChiSquareDistributionRandom Method (Int32, Int32, Double, 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,
	double[] result,
	Random source
)
Request Example View Source

Parameters

degreesOfFreedom
Type: SystemInt32
samples
Type: SystemInt32
result
Type: SystemDouble
source
Type: SystemRandom

Return Value

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