Click or drag to resize

BinomialDistribution Class

Generates Binomial distributed random numbers.
Inheritance Hierarchy
SystemObject
  Altaxo.Calc.Probability.OldProbabilityDistribution
    Altaxo.Calc.Probability.OldBinomialDistribution

Namespace: Altaxo.Calc.Probability.Old
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public class BinomialDistribution : ProbabilityDistribution

The BinomialDistribution type exposes the following members.

Constructors
 NameDescription
Public methodBinomialDistribution(Double, Int32)Initializes a new instance of the BinomialDistribution class
Public methodBinomialDistribution(Double, Int32, RandomGenerator)Initializes a new instance of the BinomialDistribution class
Top
Properties
 NameDescription
Public propertyGeneratorReturns the random generator used by the distribution to generate the random values.
(Inherited from ProbabilityDistribution)
Public propertyNum 
Public propertyProb 
Top
Methods
 NameDescription
Public methodCDF(Double)
(Overrides ProbabilityDistributionCDF(Double))
Public methodStatic memberCDF(Double, Double, Int32) 
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodInitialize 
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodNextDouble
(Overrides ProbabilityDistributionNextDouble)
Public methodPDF(Double)
(Overrides ProbabilityDistributionPDF(Double))
Public methodStatic memberPDF(Double, Double, Int32) 
Public methodQuantile
(Overrides ProbabilityDistributionQuantile(Double))
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
 NameDescription
Protected fielden 
Protected fielden1 
Protected fieldgamen1 
Protected fieldgeneratorPointer to generator.
(Inherited from ProbabilityDistribution)
Protected fieldn 
Protected fieldnp 
Protected fieldnpexp 
Protected fieldp 
Protected fieldpc 
Protected fieldpclog 
Protected fieldplog 
Protected fieldscale 
Protected fieldscalepi 
Protected fieldsq 
Protected fieldsym 
Top
Remarks
C#
Returns a binomial distributed deviate (integer returned in a double)
according to the distribution:

             j+eps                 / n \    j      n-j
     integral       p   (m) dm  = |     |  q  (1-q)
             j-eps   n,q           \ j /

References:
D. E. Knuth: The Art of Computer Programming, Vol. 2, Seminumerical
Algorithms, pp. 120, 2nd edition, 1981.
                            // 
W. H. Press, B. P. Flannery, S. A. Teukolsky, W. T. Vetterling,
Numerical Recipies in C, Cambridge Univ. Press, 1988.
See Also