MathPHP\Probability\Distribution\Discrete\BernoulliTest::testCDF PHP Méthode

testCDF() public méthode

public testCDF ( integer $k, float $p, $cdf )
$k integer
$p float
    public function testCDF(int $k, float $p, $cdf)
    {
        $this->assertEquals($cdf, Bernoulli::CDF($k, $p), '', 0.001);
    }