Click or drag to resize

IndependentRandomStreamsNextT(IRandomNumberDistributionT) Method

Returns an array of random number streams, each with a a different specified distribution.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public virtual T[][] Next<T>(
	IRandomNumberDistribution<T>[] distributions
)

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

T
An array of independent random number streams. For each i, T[i] is an array of random deviates of length StreamLength
Exceptions
ExceptionCondition
InvalidArgumentExceptionThrown if the length of the array distributions is less than the number of streams.
See Also