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

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

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

Метод Описание
CDF ( integer $k, float $p ) : float Shifted geometric distribution - cumulative distribution function
PMF ( integer $k, float $p ) : float Shifted geometric distribution - probability mass function

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

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

The probability distribution of the number X of Bernoulli trials needed to get one success, supported on the set { 1, 2, 3, ...} https://en.wikipedia.org/wiki/Geometric_distribution k trials where k ∈ {0, 1, 2, 3, ...} pmf = 1 - (1 - p)ᵏ
public static CDF ( integer $k, float $p ) : float
$k integer number of trials k ≥ 0
$p float success probability 0 < p ≤ 1
Результат float

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

The probability distribution of the number X of Bernoulli trials needed to get one success, supported on the set { 1, 2, 3, ...} https://en.wikipedia.org/wiki/Geometric_distribution k trials where k ∈ {1, 2, 3, ...} pmf = (1 - p)ᵏ⁻¹p
public static PMF ( integer $k, float $p ) : float
$k integer number of trials k ≥ 1
$p float success probability 0 < p ≤ 1
Результат float