Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic Power Law Module? #5

Open
kbruegge opened this issue Apr 27, 2017 · 1 comment
Open

Generic Power Law Module? #5

kbruegge opened this issue Apr 27, 2017 · 1 comment

Comments

@kbruegge
Copy link
Member

So I made a more generic power law module for my other project. I use it for reweighing events based on different spectra. I don't think its written in a very pythonic way but it was certainly very useful for me and could be expanded upon I hope.
You can find it here in streams-cta
I'm not sure where to put this. Maybe pyfact? However since its not only working for fact we might want to put it in here?

@maxnoe @jebuss what do you guys think about a class like that anyways. Have you created similar things in the past? I would like to avoid duplication here. And also I think this needs to be done in a more pythonic way than the weird class structure I have there right now.

Heres two example plots for which I used this module. Rewighting and getting expected events and such.

trigger_efficiency.pdf
crab_efficiency.pdf

@maxnoe
Copy link
Member

maxnoe commented Apr 27, 2017

I have started something similar in my private repo for the analysis. Wanted also to put this into the pyfact.analysis module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants