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.3572.0 (4.8.3572.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 propertyNumGets the number of trials.
Public propertyProbGets the probability of success.
Top
Methods
 NameDescription
Public methodCDF(Double) Gives the cumulative probability at x.
(Overrides ProbabilityDistributionCDF(Double))
Public methodStatic memberCDF(Double, Double, Int32) Returns the cumulative distribution function for the specified value, probability, and trial count.
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 methodInitializeInitializes the parameters for the binomial distribution.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodNextDouble Generates a random value distributed according to the distribution.
(Overrides ProbabilityDistributionNextDouble)
Public methodPDF(Double) Gives the probability density at x.
(Overrides ProbabilityDistributionPDF(Double))
Public methodStatic memberPDF(Double, Double, Int32) Returns the probability density function for the specified value, probability, and trial count.
Public methodQuantile Gives the pth quantile of the distribution.
(Overrides ProbabilityDistributionQuantile(Double))
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
 NameDescription
Protected fielden Cached floating-point parameters used by the distribution implementation.
Protected fielden1 Cached floating-point parameters used by the distribution implementation.
Protected fieldgamen1 Cached floating-point parameters used by the distribution implementation.
Protected fieldgeneratorPointer to generator.
(Inherited from ProbabilityDistribution)
Protected fieldn Cached number of trials.
Protected fieldnp Cached floating-point parameters used by the distribution implementation.
Protected fieldnpexp Cached floating-point parameters used by the distribution implementation.
Protected fieldp Cached floating-point parameters used by the distribution implementation.
Protected fieldpc Cached floating-point parameters used by the distribution implementation.
Protected fieldpclog Cached floating-point parameters used by the distribution implementation.
Protected fieldplog Cached floating-point parameters used by the distribution implementation.
Protected fieldscale Cached floating-point parameters used by the distribution implementation.
Protected fieldscalepi Cached floating-point parameters used by the distribution implementation.
Protected fieldsq Cached floating-point parameters used by the distribution implementation.
Protected fieldsym Cached flag indicating whether the symmetric variant is used.
Top
Remarks
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 Recipes in C, Cambridge Univ. Press, 1988.
See Also