MathPHP\Probability\Distribution\Discrete\BinomialTest::testPMF PHP Метод

testPMF() публичный Метод

public testPMF ( integer $n, integer $r, float $p, float $pmf )
$n integer
$r integer
$p float
$pmf float
    public function testPMF(int $n, int $r, float $p, float $pmf)
    {
        $this->assertEquals($pmf, Binomial::PMF($n, $r, $p), '', 0.001);
    }