Click or drag to resize

IndependentRandomStreamsFillT(IRandomNumberDistributionT, T) Method

Fills an array of independent random number streams with each stream following a given probability distribution.

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

Parameters

distributions  IRandomNumberDistributionT
Array of length NumberOfStreams of desired probability distributions. For each i, stream independentStreams[i] will have distribution distributions[i].
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, or if the length of distributions is less than the number of streams.
See Also