MathPHP\Probability\Distribution\Continuous\LogNormal::PDF PHP Метод

PDF() публичный статический Метод

https://en.wikipedia.org/wiki/Log-normal_distribution (ln x - μ)² 1 - ---------- pdf = ----- ℯ 2σ² xσ√2π
public static PDF ( number $x, number , number ) : number
$x number > 0
number location parameter
number scale parameter > 0
Результат number
    public static function PDF($x, $μ, $σ)
    {
        Support::checkLimits(self::LIMITS, ['x' => $x, 'μ' => $μ, 'σ' => $σ]);
        $π = \M_PI;
        $xσ√2π = $x * $σ * sqrt(2 * $π);
        $⟮ln x − μ⟯² = pow(log($x) - $μ, 2);
        $σ² = $σ ** 2;
        return 1 / $xσ√2π * exp(-($⟮ln x − μ⟯² / (2 * $σ²)));
    }