Skip to content

Add logmeanexp #81

Open
Open

Description

@itsdfish

Hi,

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

  1. tpapp commented on Dec 11, 2024

    @tpapp
    Collaborator

    Is there a universally accepted definition of logmeanexp? I had to think about what it means.

  2. cossio commented on Oct 30, 2026

    @cossio
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions