lsapy.functions.logistic#
- lsapy.functions.logistic(x, a, b)[source]#
Logistic function capped to 1.
This function should be used on sigmoid-like suitability data. The function can be used on both positive and negative values of x, as well as on increasing and decreasing sigmoid-like data.
- Parameters:
x (any) – Input values.
a (float | int) – Steepness of the function parameter.
b (float | int) – Value of the function’s midpoint.
- Returns:
Output values.
- Return type:
float
Notes
The function is defined as:
\[f(x) = \frac{1}{1 + e^{-a(x - b)}}\]