Git Product home page Git Product logo

Comments (6)

cdeil avatar cdeil commented on May 26, 2024

One option to implement this is trapz_loglog in gammafit.
We could also try UnivariateSpline in loglog space.

from gammapy.

cdeil avatar cdeil commented on May 26, 2024

Update: we now have gammapy.spectrum.integrate_spectrum.

from gammapy.

joleroi avatar joleroi commented on May 26, 2024

Note: http://docs.gammapy.org/en/latest/api/gammapy.spectrum.models.SpectralModel.html#gammapy.spectrum.models.SpectralModel.integral

from gammapy.

cdeil avatar cdeil commented on May 26, 2024

@joleroi - I know. I'll close these spectrum integral issues in the next days. I just want to do some more testing and clean-up of old code, and keep them as a reminder.

from gammapy.

adonath avatar adonath commented on May 26, 2024

Is there anything left to be done for this issue? Compare against gammalib?

from gammapy.

cdeil avatar cdeil commented on May 26, 2024

This is a key piece of spectral analysis, and probably there will still be a lot of work on getting the precision / speed trade off right in Gammapy, and https://github.com/joleroi/wstat/issues/12 might be related, i.e. things can improve a lot by changing to integrating over bins use power-law approximation over bins by default instead of a simple diff flux times bin width method (cc @joleroi).

But the main thing suggested above was implemented by you a few months ago, and there is no concrete action item here, so I'm closing this issue. We can re-open or file new issues in the future when we encounter precision or speed problems from Gammapy spectral analyses.

from gammapy.

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.