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

Namespace:  CenterSpace.NMath.Core
Assembly:  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

ExceptionCondition
CenterSpace.NMath.Core..::.InvalidArgumentExceptionThrown if the length of the array distributions is less than the number of streams.

See Also