Skip to content

log_sum_2_exp

Computation of log( (e^a + e^b) / 2) in an overflow-proof way

Parameters

  • a (float)

    First number

  • b (float)

    Second number