tracts.util.rate_to_optimizer_function#

rate_to_optimizer_function(x)#

Convert a rate parameter from physical space to optimizer space. This transformation maps values in the interval (0, 1) to the real line using the logit function.

Parameters:

x (float | numpy.ndarray) – Rate parameter in physical space.

Returns:

Rate parameter in optimizer space.

Return type:

float | numpy.ndarray