sigmoid
Luo_Suppe2026-08-15
gma.math.correction.sigmoid
function sigmoid(data, constant = 1, ignore_value = None, inverse = False, cutoff = 0.5):
S-shaped curve function transformation. Reference equation: Out = 1 / (1 + exp(constant * (cutoff - (data - vmin) / vptp))) * vptp.
Parameters:
data: array.
The data to be corrected.
Optional:
constant = float. Default 1.
The constant term of the correction factor.
ignore_value = float||None. Default None.
The value that is not involved in the calculation.
inverse = bool. Default False.
Whether to perform the inverse change.
cutoff = bool. Default 0.5.
The intercept point of the S-curve. The default is the midpoint (0.5).
Returns:
Type: array.