PHP Класс MathPHP\Probability\Distribution\Discrete\Binomial

Наследование: extends Discrete
Показать файл Открыть проект

Открытые методы

Метод Описание
CDF ( integer $n, integer $r, float $p ) : float Binomial distribution - cumulative distribution function Computes and sums the binomial distribution at each of the values in r.
PMF ( integer $n, integer $r, float $p ) : float Binomial distribution - probability mass function https://en.wikipedia.org/wiki/Binomial_distribution

Описание методов

CDF() публичный статический Метод

Binomial distribution - cumulative distribution function Computes and sums the binomial distribution at each of the values in r.
public static CDF ( integer $n, integer $r, float $p ) : float
$n integer number of events
$r integer number of successful events
$p float
Результат float

PMF() публичный статический Метод

P(X = r) = nCr pʳ (1 - p)ⁿ⁻ʳ
public static PMF ( integer $n, integer $r, float $p ) : float
$n integer number of events
$r integer number of successful events
$p float probability of success
Результат float