Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weighted mean with function #886

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Commits on Aug 1, 2023

  1. Weighted mean with function

    Adds the method for a weighted mean of elements transformed by a function.
    
    - Added `mean(f, itr, weights)`
    - Added tests for the method
    itsdebartha committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    d6a36af View commit details
    Browse the repository at this point in the history
  2. Added more tests for coverage

    Added tests for UnitWeights
    itsdebartha committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    2acfbfa View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2023

  1. Minor modifications

    - Add keyword arguments for the weights
    - Modified functions to use `Iterators.map`
    - Add more tests
    itsdebartha committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    b8be0a5 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2023

  1. Corrections

    itsdebartha committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    7653f2c View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2023

  1. Try to use Broadcast

    All checks not passed
    itsdebartha committed Sep 3, 2023
    Configuration menu
    Copy the full SHA
    448e6ee View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2023

  1. Fixings and finalising

    - Removed implementation for multi-dimensional array
    - Updated documentations
    - Updated tests
    itsdebartha committed Oct 12, 2023
    Configuration menu
    Copy the full SHA
    6a6997a View commit details
    Browse the repository at this point in the history

Commits on Dec 3, 2023

  1. Changes as requested by @devmotion

    Used `Broadcast.instantiate` as requested to overcome falling back to Cartesian indexing
    itsdebartha committed Dec 3, 2023
    Configuration menu
    Copy the full SHA
    f9984f8 View commit details
    Browse the repository at this point in the history

Commits on Dec 17, 2023

  1. Remove internal method _funcweightedmean

    Instead deploy it as a method for `mean`
    itsdebartha committed Dec 17, 2023
    Configuration menu
    Copy the full SHA
    c1768a6 View commit details
    Browse the repository at this point in the history