Discrete Distribution<T>.Sample Levels Method
Fills an array with the level indexes of random samples from
this DiscreteDistribution<T>.
Definition
Namespace: Numerics.NET.Statistics.Distributions
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
public void SampleLevels(
Random random,
int[] samples,
int startIndex,
int length
)
Parameters
Remarks
This method fills a block of length elements of samples, starting at index startIndex with random samples from the distribution.
Exceptions
Argument | samples is null. -or- random is null. |
Argument | startIndex is less than zero. -or- length is less than zero. |
Argument | length is greater than the number of elements from startIndex to the end of samples. |