MathPHP\Functions\Special::sigmoid PHP 메소드

sigmoid() 공개 정적인 메소드

Often, sigmoid function refers to the special case of the logistic function https://en.wikipedia.org/wiki/Sigmoid_function 1 S(t) = ------- 1 + ℯ⁻ᵗ
public static sigmoid ( number $t ) : float
$t number
리턴 float
    public static function sigmoid($t)
    {
        $ℯ⁻ᵗ = exp(-$t);
        return 1 / (1 + $ℯ⁻ᵗ);
    }