MathPHP\Functions\Special::sigmoid PHP Method

sigmoid() public static method

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
return float
    public static function sigmoid($t)
    {
        $ℯ⁻ᵗ = exp(-$t);
        return 1 / (1 + $ℯ⁻ᵗ);
    }