Fills the columns of a given matrix with independent random streams following
the given probablility distribution.
Namespace:
CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public void Fill( IRandomNumberDistribution<double> distribution, DoubleMatrix R ) |
| Visual Basic (Declaration) |
|---|
Public Sub Fill ( _ distribution As IRandomNumberDistribution(Of Double), _ R As DoubleMatrix _ ) |
| Visual C++ |
|---|
public: void Fill( IRandomNumberDistribution<double>^ distribution, DoubleMatrix^ R ) |
Parameters
- distribution
- Type: CenterSpace.NMath.Core..::.IRandomNumberDistribution<(Of <(Double>)>)
The desired probablility distribution.
- R
- Type: CenterSpace.NMath.Core..::.DoubleMatrix
StreamLength x NumberOfStreams matrix to be filled.
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 && R.ColStride == R.Rows.
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.InvalidArgumentException | Thrown 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. |