Skip to contents

calculate log-sum-exp values

Usage

logsumexp(v)

Arguments

v

numeric vector

Value

log-sum-exp values

Examples

logsumexp(c(100, 1000, 10000))
#> [1] 10000