Click or drag to resize

IntRandomBinomialDistribution Class

Class IntRandomBinomialDistribution generates random numbers from a discrete binomial distribution.
Inheritance Hierarchy
SystemObject
  CenterSpace.NMath.CoreIntRandomBinomialDistribution

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

The IntRandomBinomialDistribution type exposes the following members.

Constructors
 NameDescription
Public methodIntRandomBinomialDistribution Constructs a random number generator for a discrete binomial distribution using the default number of independent trials (100) and probability of success on each trial (0.50).
Public methodIntRandomBinomialDistribution(Int32, Double) Constructs a random number generator for a discrete binomial distribution using the specified number of independent trials and probability of success on each trial.
Top
Properties
 NameDescription
Public propertyNumberOfTrials Gets the number of independent trials.
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 binomial distribution is the discrete probability distribution of the number of successes in a sequence of n independent yes/no experiments, each of which yields success with probability p.
See Also