MathPHP\Probability\Distribution\Discrete\Geometric::CDF PHP Метод

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

The probability distribution of the number Y = X − 1 of failures before the first success, supported on the set { 0, 1, 2, 3, ... } https://en.wikipedia.org/wiki/Geometric_distribution k failures 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
    public static function CDF(int $k, float $p) : float
    {
        Support::checkLimits(self::LIMITS, ['k' => $k, 'p' => $p]);
        $⟮1 − p⟯ᵏ⁺¹ = pow(1 - $p, $k + 1);
        return 1 - $⟮1 − p⟯ᵏ⁺¹;
    }
Geometric