Fills the given single precision matrix with M.Cols quasirandom points. The
points are the columns of the matrix, hence the number of rows in the
given matrix must be equal to the Dimension. The quasirandom numbers
will follow the given distribution.
Namespace:
CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public void Fill( IRandomNumberDistribution<float> distribution, FloatMatrix M ) |
| Visual Basic (Declaration) |
|---|
Public Sub Fill ( _ distribution As IRandomNumberDistribution(Of Single), _ M As FloatMatrix _ ) |
| Visual C++ |
|---|
public: void Fill( IRandomNumberDistribution<float>^ distribution, FloatMatrix^ M ) |
Parameters
- distribution
- Type: CenterSpace.NMath.Core..::.IRandomNumberDistribution<(Of <(Single>)>)
Then desired probability distribution for the generated numbers.
- M
- Type: CenterSpace.NMath.Core..::.FloatMatrix
>Matrix to fill. M must have Dimension rows.
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.InvalidArgumentException | Thrown if the number of rows in the input matrix is not equal to Dimension. |