MultivariateContinuousDistribution.Sample Method

Definition

Namespace: Extreme.Statistics.Distributions
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

Sample(Random) Returns a random sample from the distribution.
Sample(Random, Int32) Returns a matrix with random samples from the distribution.

Sample(Random)

Returns a random sample from the distribution.
C#
public DenseVector<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

DenseVector<Double>

Remarks

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

Exceptions

ArgumentNullExceptionrandom is null.

Sample(Random, Int32)

Returns a matrix with random samples from the distribution.
C#
public virtual DenseMatrix<double> Sample(
	Random random,
	int count
)

Parameters

random  Random
A Random object that specifies the uniform random number generator that is to be used to generate the samples.
count  Int32
The number of samples to return.

Return Value

DenseMatrix<Double>

Remarks

Each row of the matrix contains a random sample from the distribution.

Exceptions

ArgumentOutOfRangeExceptioncount is less than zero.

See Also