Skip to content

log_sum_2_exp

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

Parameters

  • a

    Typefloat

    First number

  • b

    Typefloat

    Second number