boostorg / boostorg/histogram

Extend fraction to weighted samples

オープン
#367 コメント 1 件 リアクション 2 件 担当者 0 名 GitHub で見る
easy enhancement help wanted
主要言語
C++
スター
334
フォーク
76
PR マージ指標
30日以内にマージされた PR はありません

説明

We have a fraction accumulator now, but it does not work correctly for weighted samples. However, we definitely need this in high-energy physics because we often estimate the efficiency of some detector from weighted simulation samples.

There are several ways how this could be implemented
1) New class `weighted_fraction`
2) Specialization `fraction>`
3) Template specialization `fraction`

Number 3) is my least favored. I like 2), if that's feasible.

Ping @henryiii @gohil-jay @jpivarski

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。