boostorg / boostorg/histogram

Extend arithmetic operator support for accumulators

Open
#352 0 comments 4 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
334
Forks
76
PR merge metrics
No merged PRs in 30d

Description

All accumulators support addition and scaling (multiplication by a constant). Additionally, we could support subtraction, multiplication, and division.

Subtraction
- [ ] count
- [ ] sum
- [ ] weighted_sum
- [ ] mean
- [ ] weighted_mean

Multiplication
- [ ] count
- [ ] sum
- [ ] weighted_sum
- [ ] mean
- [ ] weighted_mean

Division
- [ ] count
- [ ] sum
- [x] weighted_sum
- [ ] mean
- [ ] weighted_mean

How to implement division and multiplication for weighted mean is mathematically not clear to me.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.