Click or drag to resize

ProbabilityDistributionSample Method (Int32)

Draws a sample from this instance having the specified size and returns it as a matrix.

Namespace:  Novacta.Analytics
Assembly:  Novacta.Analytics (in Novacta.Analytics.dll) Version: 2.0.0
Syntax
public DoubleMatrix Sample(
	int sampleSize
)

Parameters

sampleSize
Type: SystemInt32
The sample size.

Return Value

Type: DoubleMatrix
The matrix whose entries store the sample.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionsampleSize is not positive.
Remarks

The returned matrix has one column and a number of rows equal to sampleSize.

See Also