| IndependentRandomStreamsNextT(IRandomNumberDistributionT) Method |
Returns an array of random number streams, each with a
a different specified distribution.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public virtual T[][] Next<T>(
IRandomNumberDistribution<T>[] distributions
)
Public Overridable Function Next(Of T) (
distributions As IRandomNumberDistribution(Of T)()
) As T()()
public:
generic<typename T>
virtual array<array<T>^>^ Next(
array<IRandomNumberDistribution<T>^>^ distributions
)
abstract Next :
distributions : IRandomNumberDistribution<'T>[] -> 'T[][]
override Next :
distributions : IRandomNumberDistribution<'T>[] -> 'T[][]
Parameters
- distributions IRandomNumberDistributionT
- 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
TAn array of independent random number streams. For each
i, T[i] is
an array of random deviates of length
StreamLengthExceptions Exception | Condition |
---|
InvalidArgumentException | Thrown if the length of the
array distributions is less than the number of streams. |
See Also