StatsBase.jl icon indicating copy to clipboard operation
StatsBase.jl copied to clipboard

Weighted mean with function

Open itsdebartha opened this issue 2 years ago • 1 comments

This PR addresses #868 . Adds the method for a weighted mean of elements transformed by a function.

  • Added mean(f, itr, weights)
  • Added tests for the method

itsdebartha avatar Aug 01 '23 13:08 itsdebartha

@devmotion @ParadaCarleton gentle ping, is this PR ready to merge?

itsdebartha avatar Mar 02 '24 06:03 itsdebartha