MathPHP\Probability\Distribution\Discrete\Pascal::PMF PHP Method

PMF() public static method

b(x; r, P) = ₓ₋₁Cᵣ₋₁ pʳ * (1 - P)ˣ⁻ʳ
public static PMF ( integer $x, integer $r, float $P ) : float
$x integer number of trials required to produce r successes
$r integer number of successful events
$P float probability of success on an individual trial
return float
    public static function PMF(int $x, int $r, float $P) : float
    {
        return NegativeBinomial::PMF($x, $r, $P);
    }
Pascal