MathPHP\Probability\Distribution\Continuous\CauchyTest::testCDF PHP Method

testCDF() public method

public testCDF ( $x, $x₀, , $cdf )
    public function testCDF($x, $x₀, $γ, $cdf)
    {
        $p = Cauchy::CDF($x, $x₀, $γ);
        $this->assertEquals($cdf, $p, '', 0.0001);
        $this->assertEquals($x, Cauchy::inverse($p, $x₀, $γ), '', 0.0001);
    }