Discrete Distribution<T>.Sample Level Method
Returns the level index of a random sample from the distribution.
Definition
Namespace: Numerics.NET.Statistics.Distributions
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
The index of the sample in the set of items.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public int SampleLevel(
Random random
)
Parameters
- random Random
- A Random object that specifies the uniform random number generator that is to be used to generate the samples.
Return Value
Int32The index of the sample in the set of items.
Remarks
This method uses the random number generator specified by random to generate a random sample from the distribution. The return values of successive calls to this method follow the statistical distribution represented by this distribution.