WebCab Probability and Statistics for .NET v3.3 Demo

BinomialProbabilityDistribution.GetRandomNumbers Method 

Generated a string of random numbers from the Binomial distribution.

public int[] GetRandomNumbers(
   int numberOfRandomValues
);

Parameters

numberOfRandomValues
The number of random values generated from the Binomial distribution.

Remarks

Before this method is called it is necesary to set the total number of trials and the probability of each of the trials being a successes using SetNumberOfTrials and SetProbabilityOfASuccess, respectively.

For a array of random numbers within the range [0,1] (i.e. an array of probabilities), we return a array of INTEGER values for which n-th value the cumulative Binomial distribution function is greater than or equal to the n-th randomly generated number.

See Also

BinomialProbabilityDistribution Class | WebCab.Libraries.Statistics.PDistributions Namespace