powered by
Transfor a vector with over- or underflow
logsumexp(x, min_x = Inf)
`logsumexp` returns each element of the vector `x` transformed using the Log-Sum-Exp trick.
A vector with numbers
A numerical value to represent the minimum value to perform comparison with the actual minimum value of `x`
# Transforming all elements in a vector using the Log-Sum-Exp trick x <- c(1, 2, 3, 4, 5, 6) logsumexp(x)
Run the code above in your browser using DataLab