Click or drag to resize

IndependentRandomStreamsFillT(IRandomNumberDistributionT, T) Method

Fills an array of independent random number streams with random deiviats which follow the given probability distribution.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public virtual void Fill<T>(
	IRandomNumberDistribution<T> distribution,
	T[][] independentStreams
)

Parameters

distribution  IRandomNumberDistributionT
The desired probablility distribution.
independentStreams  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
ExceptionCondition
InvalidArgumentExceptionThrown 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.
See Also