Skip to content

[histv7] Division for RHist.#5497

Closed
claireguyot wants to merge 6 commits intoroot-project:masterfrom
claireguyot:v7_hist_division
Closed

[histv7] Division for RHist.#5497
claireguyot wants to merge 6 commits intoroot-project:masterfrom
claireguyot:v7_hist_division

Conversation

@claireguyot
Copy link
Contributor

No description provided.

@phsft-bot
Copy link

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos7-multicore/default, ROOT-fedora29/python3, ROOT-fedora30/cxx14, ROOT-fedora31/noimt, ROOT-ubuntu16/nortcxxmod, mac1015/cxx17, windows10/cxx14
How to customize builds

@phsft-bot
Copy link

Build failed on ROOT-fedora30/cxx14.
Running on root-fedora30-2.cern.ch:/home/sftnight/build/workspace/root-pullrequests-build
See cdash.
See console output.

Failing tests:

@claireguyot claireguyot requested a review from HadrienG2 April 30, 2020 08:14
Copy link
Member

@Axel-Naumann Axel-Naumann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super nice, congrats! Some tiny suggestions.


/// Divide by an other RHistStatTotalSumOfWeights data, assuming same bin configuration.
void DivideBinomial(const RHistStatTotalSumOfWeights& other) {
// /!\ Should be the sum of the updated weights (after division) of the bin contents
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of curiosity: what's /!\ Looks great for a warning sign, does Doxygen understand that? And maybe:

Suggested change
// /!\ Should be the sum of the updated weights (after division) of the bin contents
// /!\ Must be called *after* the bin contents have been divided!

(if that's what it is). More occurrences below.

Copy link
Contributor

@HadrienG2 HadrienG2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable to me at this stage, but there are a couple of things which I don't understand...

@phsft-bot
Copy link

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos7-multicore/default, ROOT-fedora29/python3, ROOT-fedora30/cxx14, ROOT-fedora31/noimt, ROOT-ubuntu16/nortcxxmod, mac1015/cxx17, windows10/cxx14
How to customize builds

@phsft-bot
Copy link

Build failed on ROOT-fedora29/python3.
Running on root-fedora29-2.cern.ch:/build/workspace/root-pullrequests-build
See cdash.
See console output.

Failing tests:

/// Adding histograms with incompatible axis binning will be reported at runtime
/// with an `std::runtime_error`. Insufficient statistics in the source
/// histogram will be detected at compile-time and result in a compiler error.
/// with an `std::runtime_error`. Incompatible statistics' size in the source
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not just about size, the actual constraint (as of the current code) is that "from" must record at least the same statistics as "to" or else the toImpl.GetStat().Add(fromImpl.GetStat()) call will fail because the statistics which only exist in "to" will not find their counterpart in "from" and therefore the call to the corresponding virtual statistics class method in the implementation will fail.

@ferdymercury
Copy link
Collaborator

Closing this PR for the moment due to #18191

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants