lsapy.functions.sigmoid#

lsapy.functions.sigmoid(x)[source]#

Logistic sigmoid function.

This function is a special case of the logistic function with a=1 and b=0, thus can be used on both positive and negative values of x, however only for increasing sigmoid-like data.

Parameters:

x (any) – Input values.

Returns:

Output values.

Return type:

float

See also

logistic()

Notes

The sigmoid function is defined as:

\[f(x) = \frac{1}{1 + e^{-x}}\]