Click or drag to resize

RandGenBinomial Class

Class RandGenBinomial generates random numbers from a binomial distribution.
Inheritance Hierarchy
SystemObject
  CenterSpace.NMath.CoreRandomNumberGenerator
    CenterSpace.NMath.CoreRandGenBinomial

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public class RandGenBinomial : RandomNumberGenerator

The RandGenBinomial type exposes the following members.

Constructors
 NameDescription
Public methodRandGenBinomial(Int32, Double) Constructs a random number generator for binomial distributions using the RandGenMTwist class as the underlying uniform random number generator.
Public methodRandGenBinomial(Int32, Double, RandomNumberGeneratorUniformRandomNumber) Constructs a random number generator for binomial distributions using the specified uniform random number generator.
Public methodRandGenBinomial(Int32, Double, Int32) Constructs a random number generator for binomial distributions using a seeded RandGenMTwist class as the underlying uniform random number generator.
Top
Properties
 NameDescription
Public propertyProbability Gets the probability of success on each trial.
Public propertyTrials Gets the total number of trials.
Public propertyUniformDeviateMethod Gets and sets the delegate method for generating uniform deviates between zero and one.
(Inherited from RandomNumberGenerator)
Top
Methods
 NameDescription
Public methodClone Creates a deep copy of this random number generator.
(Overrides RandomNumberGeneratorClone)
Public methodFill(Double) Fills the given array of doubles with random values.
(Inherited from RandomNumberGenerator)
Public methodFill(DoubleComplex) Fills the given array of double-precision complex numbers with random values.
(Inherited from RandomNumberGenerator)
Public methodFill(DoubleDataBlock) Fills the given data block with random values.
(Inherited from RandomNumberGenerator)
Public methodFill(FloatComplex) Fills the given array of single-precision complex numbers with random values.
(Inherited from RandomNumberGenerator)
Public methodFill(Int32) Fills the given array of integers with random values.
Public methodFill(Single) Fills the given array of floats with random values.
(Inherited from RandomNumberGenerator)
Public methodNext Generates a random number.
Public methodNextDouble Generates a double precision random number.
(Overrides RandomNumberGeneratorNextDouble)
Public methodNextDoubleComplex Method for generating a double precision complex number random deviate.
(Inherited from RandomNumberGenerator)
Public methodNextFloat Method for generating a single precision random deviate.
(Inherited from RandomNumberGenerator)
Public methodNextFloatComplex Method for generating a single precision complex number random deviate.
(Inherited from RandomNumberGenerator)
Public methodReset Resets the random number generator using a random seed.
(Inherited from RandomNumberGenerator)
Public methodReset(Int32) Resets the random number generator with the specified seed.
(Inherited from RandomNumberGenerator)
Top
Fields
 NameDescription
Protected fieldrand_ A delegate method for generating uniform deviates between zero and one.
(Inherited from RandomNumberGenerator)
Top
Remarks
An instance of RandGenBinomial simulates n identical, independent trials with probability of success p on each trial and probability of failure 1 - p on each trial. The Next() method returns the total number of successes in n trials.
See Also