Comments (6)
Could you write a short example which reproduces this problem? It makes it easier to check and then I can add it to the unit tests to make sure this case is covered.
from qntools.
Here's the small root macro reproducing the problem.
https://github.com/mam-mih-val/qn_tools_test
from qntools.
Upd: Inf/nan is on Viktor's fork version. On current version of this repo result histo ("flow") is not filled at all.
from qntools.
@mam-mih-val can you try with the branch kreisl:projectiontest. It only appears if we have empty bins in the merging. It should fix the issues you are seeing? Please take note to merge bins after dividing we need to set the numerator as observable, to know which weight to take? In your example https://github.com/mam-mih-val/qn_tools_test i think you need to edit the lines like so:
Qn::DataContainerStats flow = *container_un_qn;
for (auto & bin : flow) {
bin.SetWeights(Qn::Stats::Weights::OBSERVABLE);
bin.ResetBits(Qn::Stats::CORRELATEDERRORS);
}
flow = flow / resolution;
Somehow the correlated errors don't work that's why i disabled them. maybe we need to look in a separate test into this. Please let me know if it worked.
from qntools.
Yeah, the fix you offered works. But as I can remember, there was not such a bug in earlier versions, was it?
from qntools.
Yes this could be at some point I cleaned up the logic. I think this is not perfect yet. We should discuss again all possible cases and make sure we have them all covered.
from qntools.
Related Issues (20)
- QnTools with old ROOT HOT 3
- Dedicated flag for switching on/of tests
- QnTools as a subproject (subdirectory)
- Backward compatibility
- New correlation weights management HOT 1
- Missing includes
- Problem with Bootstrap error in Qn::DataContainerStatCalculate HOT 2
- Segfault on destruction of CorrectionManager HOT 2
- AverageHelper: crash during Finalize HOT 3
- QnTools - correction logic HOT 7
- cumulants with particle weights.
- Problem with selection bins on axis with non-uniform-width binning HOT 4
- Non-uniform binnning for the QA histograms
- Qn::ToTGraph, counter is not incremented if Sumw <= 0
- nan values from StatCalculate::StdDevOfMeanFromBootstrapVariance HOT 1
- Deprecation of TROOT::GetImplicitMTPoolSize HOT 3
- Bootstrapping enhancements HOT 1
- Machinery for systematics studies in Qn::StatCalculate HOT 4
- googletest master->main HOT 1
- Improper use of the std::array::empty HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qntools.