Giter Site home page Giter Site logo

Comments (6)

kreisl avatar kreisl commented on September 25, 2024

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.

mam-mih-val avatar mam-mih-val commented on September 25, 2024

Here's the small root macro reproducing the problem.
https://github.com/mam-mih-val/qn_tools_test

from qntools.

mam-mih-val avatar mam-mih-val commented on September 25, 2024

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.

kreisl avatar kreisl commented on September 25, 2024

@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.

mam-mih-val avatar mam-mih-val commented on September 25, 2024

Yeah, the fix you offered works. But as I can remember, there was not such a bug in earlier versions, was it?

from qntools.

kreisl avatar kreisl commented on September 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.