MultivariateContinuousDistribution.FillSample Method

Definition

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

Overload List

FillSample(Random, Vector<Double>) Fills a vector with a random sample from the distribution.
FillSample(Random, Double[]) Fills a Double array with random numbers.

FillSample(Random, Vector<Double>)

Fills a vector with a random sample from the distribution.
C#
public void FillSample(
	Random random,
	Vector<double> sample
)

Parameters

random  Random
A Random object that specifies the uniform random number generator that is to be used to generate the samples.
sample  Vector<Double>
A vector.

Remarks

This method fills the vector specified by sample, with a single sample from the distribution.

Exceptions

ArgumentNullExceptionsample is null.
-or-
random is null.
DimensionMismatchExceptionThe length of sample does not equal the Order of the distribution.

FillSample(Random, Double[])

Fills a Double array with random numbers.
C#
public void FillSample(
	Random random,
	double[] sample
)

Parameters

random  Random
A Random object that specifies the uniform random number generator that is to be used to generate the samples.
sample  Double[]
A Double array.

Remarks

This method fills the array specified by sample, with random samples from the distribution.

Exceptions

ArgumentNullExceptionsample is null.
-or-
random is null.
DimensionMismatchExceptionThe length of sample does not equal the Order of the distribution.

See Also