lsapy.functions.logistic#
- lsapy.functions.logistic(x, a, b)[source]#
Logistic function.
- Parameters:
x (any) – Input values to map.
a (float | int) – Steepness of the function parameter.
b (float | int) – Value of the function’s midpoint.
- Returns:
Suitability values.
- Return type:
float
Notes
The logistic function is defined as:
\[f(x) = \frac{1}{1 + e^{-a(x - b)}}\]