Fills an array of independent random number streams with random deiviats
which follow the given probability distribution.
Namespace:
CenterSpace.NMath.Core
Assembly:
NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| Visual Basic (Declaration) |
|---|
Public Overridable Sub Fill(Of T) ( _
distribution As IRandomNumberDistribution(Of T), _
independentStreams As T()() _
) |
| Visual C++ |
|---|
public:
generic<typename T>
virtual void Fill(
IRandomNumberDistribution<T>^ distribution,
array<array<T>^>^ independentStreams
) |
Parameters
- distribution
- Type: CenterSpace.NMath.Core..::.IRandomNumberDistribution<(Of <(T>)>)
The desired probablility distribution.
- independentStreams
- Type: array<
array<
T
>[]()[]
>[]()[]
An array of independent random number streams. For each
i, independentStreams[i] is
an array of random deviates of length StreamLength. The array length of the array
independentStreams must be greater than the number of streams, and the length
of each array independentStreams[i] must be greater than StreamLength.
Type Parameters
- T
- Data type of generated deviates.
Exceptions
See Also