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.
Constructor | Description |
Full Usage:
BinomialDistribution(prob, num)
Parameters:
float
num : int
|
|
Full Usage:
BinomialDistribution(prob, num, ran)
Parameters:
float
num : int
ran : RandomGenerator
|
|
Instance member | Description |
Full Usage:
this.CDF
Parameters:
float
Returns: float
Modifiers: abstract |
|
Full Usage:
this.NextDouble
Returns: float
Modifiers: abstract |
|
Full Usage:
this.Num
Returns: int
|
|
Full Usage:
this.PDF
Parameters:
float
Returns: float
Modifiers: abstract |
|
Full Usage:
this.Prob
Returns: float
|
|
Full Usage:
this.Quantile
Parameters:
float
Returns: float
Modifiers: abstract |
|
Static member | Description |
Full Usage:
BinomialDistribution.CDF(x, p, n)
Parameters:
float
p : float
n : int
Returns: float
|
|
Full Usage:
BinomialDistribution.PDF(x, p, n)
Parameters:
float
p : float
n : int
Returns: float
|
|