Fills an array of independent random number streams with each stream following
a 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) ( _
distributions As IRandomNumberDistribution(Of T)(), _
independentStreams As T()() _
) |
| Visual C++ |
|---|
public:
generic<typename T>
virtual void Fill(
array<IRandomNumberDistribution<T>^>^ distributions,
array<array<T>^>^ independentStreams
) |
Parameters
- distributions
- Type: array<
CenterSpace.NMath.Core..::.IRandomNumberDistribution<(Of <(T>)>)
>[]()[]
Array of length NumberOfStreams
of desired probability distributions. For each i,
stream independentStreams[i] will have distribution distributions[i].
- 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
| Exception | Condition |
|---|
| CenterSpace.NMath.Core..::.InvalidArgumentException | Thrown if the length of independentStreams
is less than the number of streams, or if the length of independentStreams[i]
is less than the stream length for some i, or if the length of distributions
is less than the number of streams. |
See Also