BinomialDistribution Type

Generates Binomial distributed random numbers.

             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.

Constructors

Constructor Description

BinomialDistribution(prob, num)

Full Usage: BinomialDistribution(prob, num)

Parameters:
    prob : float
    num : int

prob : float
num : int

BinomialDistribution(prob, num, ran)

Full Usage: BinomialDistribution(prob, num, ran)

Parameters:

prob : float
num : int
ran : RandomGenerator

Instance members

Instance member Description

this.CDF

Full Usage: this.CDF

Parameters:
    x : float

Returns: float
Modifiers: abstract

x : float
Returns: float

this.NextDouble

Full Usage: this.NextDouble

Returns: float
Modifiers: abstract

Returns: float

this.Num

Full Usage: this.Num

Returns: int

Returns: int

this.PDF

Full Usage: this.PDF

Parameters:
    x : float

Returns: float
Modifiers: abstract

x : float
Returns: float

this.Prob

Full Usage: this.Prob

Returns: float

Returns: float

this.Quantile

Full Usage: this.Quantile

Parameters:
    x : float

Returns: float
Modifiers: abstract

x : float
Returns: float

Static members

Static member Description

BinomialDistribution.CDF(x, p, n)

Full Usage: BinomialDistribution.CDF(x, p, n)

Parameters:
    x : float
    p : float
    n : int

Returns: float

x : float
p : float
n : int
Returns: float

BinomialDistribution.PDF(x, p, n)

Full Usage: BinomialDistribution.PDF(x, p, n)

Parameters:
    x : float
    p : float
    n : int

Returns: float

x : float
p : float
n : int
Returns: float