Click or drag to resize

IndependentRandomStreamsFill(IRandomNumberDistributionSingle, FloatMatrix) Method

Fills the columns of a given matrix with independent random streams following the given probablility distribution.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public void Fill(
	IRandomNumberDistribution<float> distribution,
	FloatMatrix R
)

Parameters

distribution  IRandomNumberDistributionSingle
The desired probablility distribution.
R  FloatMatrix
StreamLength x NumberOfStreams matrix to be filled.
Exceptions
ExceptionCondition
InvalidArgumentExceptionThrown if the number of rows in R is not equal to StreamLength, or if the number of columns in R is not equal to NumberOfStreams.
Remarks
The input matrix R must have its data in contiguous storage. This means that the matrix R can not be obtained by slicing another matrix. This means that the property R.IsCompactStride must be true or, equivalently, R.RowStride == 1 amp;amp; R.ColStride == R.Rows.
See Also