MathPHP\Probability\Distribution\Continuous\Cauchy::CDF PHP Méthode

CDF() public static méthode

Cumulative distribution function Calculate the cumulative value value up to a point, left tail.
public static CDF ( number $x, number $x₀, integer ) : number
$x number
$x₀ number location
integer scale
Résultat number
    public static function CDF($x, $x₀, $γ)
    {
        Support::checkLimits(self::LIMITS, ['x' => $x, 'x₀' => $x₀, 'γ' => $γ]);
        $π = \M_PI;
        return 1 / $π * atan(($x - $x₀) / $γ) + 0.5;
    }