Returns an array of random number streams, each with a
a different specified distribution.
Namespace:
CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public virtual T[][] Next<T>( IRandomNumberDistribution<T>[] distributions ) |
| Visual Basic (Declaration) |
|---|
Public Overridable Function Next(Of T) ( _ distributions As IRandomNumberDistribution(Of T)() _ ) As T()() |
| Visual C++ |
|---|
public: generic<typename T> virtual array<array<T>^>^ Next( array<IRandomNumberDistribution<T>^>^ distributions ) |
Parameters
- distributions
- Type: array<
CenterSpace.NMath.Core..::.IRandomNumberDistribution<(Of <(T>)>)
>[]()[]
Array of length NumberOfStreams of desired probability distributions. For each i, stream T[i] will have distribution distributions[i].
Type Parameters
- T
- Data type of generated deviates.
Return Value
An array of independent random number streams. For each i, T[i] is an array of random deviates of length StreamLength
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.InvalidArgumentException | Thrown if the length of the array distributions is less than the number of streams. |