MathPHP\Probability\Distribution\Discrete\BernoulliTest::testPMF PHP Method

testPMF() public method

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