Funktion to compute log(sum(exp(x))

logSumExp(x, mean = F)

Arguments

x

values

mean

logical, determines whether the mean should be used