tracts.util.time_to_optimizer_function#
- time_to_optimizer_function(x)#
Convert a time parameter from physical space to optimizer space. This transformation maps strictly positive values to the real line using the natural logarithm.
- Parameters:
x (float | numpy.ndarray) – Time parameter in physical space.
- Returns:
Time parameter in optimizer space.
- Return type:
float | numpy.ndarray