Click or drag to resize

IntRandomNegativeBinomialDistribution Class

Class IntRandomNegativeBinomialDistribution generates random numbers from a discrete negative binomial distribution.
Inheritance Hierarchy
SystemObject
  CenterSpace.NMath.CoreIntRandomNegativeBinomialDistribution

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 7.3
Syntax
public class IntRandomNegativeBinomialDistribution : IRandomNumberDistribution<int>, 
	ICloneable

The IntRandomNegativeBinomialDistribution type exposes the following members.

Constructors
  NameDescription
Public methodIntRandomNegativeBinomialDistribution
Constructs a random number generator for a discrete negative binomial distribution using the default number of failures before stopping (10) and probability of success on each trial (0.50).
Public methodIntRandomNegativeBinomialDistribution(Int32, Double)
Constructs a random number generator for a discrete negative binomial distribution using the specified number of failures before stopping and probability of success on each trial.
Top
Properties
  NameDescription
Public propertyFailures
Gets the target for the number of failures before stopping.
Public propertyProbability
Gets the probability of success on each trial.
Top
Methods
  NameDescription
Public methodClone
Creates a deep copy of this random number generator.
Public methodFill
Uses the given random number stream to fill the given array of integers with random values.
Top
Remarks
The negative binomial distribution is a discrete probability distribution of the number of successes in a sequence of Bernoulli trials before a specified number of failures occurs.
See Also