Trimming.CustomSigmoid#

CustomSigmoid.py

custom_sigmoid(x, L, x0, k, b)#
custom_sigmoid_inv(y, L, x0, k, b)#

y = L*dini_sigmoid(x - x0, k) + b dini_sigmoid(x - x0, k) = (y - b)/L x - x0 = dini_sigmoid_inv((y - b)/L, k) x = dini_sigmoid_inv((y - b)/L, k) + x0

get_safer_point_impl(x, a_y, ratio, a_popt, debug=False)#