Click or drag to resize
Accord.NET (logo)

MultivariateDiscreteDistributionGenerate Method (Int32, Random)

Generates a random observation from the current distribution.

Namespace:  Accord.Statistics.Distributions.Multivariate
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.6.0
Syntax
public int[] Generate(
	int[] result,
	Random source
)
Request Example View Source

Parameters

result
Type: SystemInt32
source
Type: SystemRandom

Return Value

Type: Int32
A random observations drawn from this distribution.

Implements

ISampleableDistributionTObservationsGenerate(TObservations, Random)
See Also