Skip to contents

log sum exp trick

Usage

logsumexp(x)

Arguments

x

a vector of numbers

Value

a numeric value

Examples


logsumexp(c(-20,-30))
#> [1] -19.99995