gwinferno.distributions.logistic_unit#

logistic_unit(x, x0, sgn=1, sc=4)[source]#

logistic_unit soft truncate a distribution with the logistic unit

Args:

x (array_like): input array to truncate x0 (float): value of array we want to apply a soft truncation to sgn (int, optional): Which side do we truncate on (1 for right, -1 for left). Defaults to 1. sc (int, optional): scale of truncation, where higher values is sharper. Defaults to 4.

Returns:

array_like: input array with the soft truncation at x0 applied