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