WishartDistribution.Sample Method

Returns a random sample from the distribution.

Definition

Namespace: Numerics.NET.Statistics.Distributions
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
C#
public SymmetricMatrix<double> Sample(
	Random random
)

Parameters

random  Random
A Random object that specifies the uniform random number generator that is to be used to generate the samples.

Return Value

SymmetricMatrix<Double>
A symmetric matrix that is a sample of the distribution.

Remarks

This method returns a vector that contains a single sample from the distribution.

Exceptions

ArgumentNullException

random is null.

See Also