You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that R and Python have logmeanexp. I think this would be a simple, yet useful addition. I would be willing to make a PR. The basic function would be
function logmeanexp(X::AbstractArray{<:Number})
return logsumexp(X) - log(length(X))
end
Some additional logic would be needed to handled the dims keyword.
Activity
tpapp commentedon Dec 11, 2024
Is there a universally accepted definition of logmeanexp? I had to think about what it means.
cossio commentedon Oct 30, 2026
Related: https://github.com/cossio/LogStatFunctions.jl/