gncpy.math.log_sum_exp

log_sum_exp(lst)[source]

Utility function for a log-sum-exponential trick.

Parameters:

lst (list) – list of values.

Returns:

tot – result of log-sum-exponential calculation.

Return type:

float