Skip to content

exp-weighted mean #93

Description

@tpapp

Recently I have been calculating

$$\frac{\sum_i \exp(w_i) \exp(z_i) }{\sum_i \exp(w_i)}$$

forms a lot. They usually come from parametric derivatives of logsumexp, eg

$$\log \sum_i \exp(a_i + z_i y)$$

by $y$. I wonder if it is general enough to have a place in this package.

Activity

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