pyhf
pyhf copied to clipboard
closed form density functions as additive modifiers
Summary
This is a slight variation of #1991 in so far that instead of a multiplicative modifer f(pars) that is multiplied to all bins in a sample, this allows an additive modifier f(x,pars) where x is the channel observable.
This is likely a highly non-optimized implementation (esp the integration using scipy.quad and a python loop over bins), but it shows that things are possible
https://gist.github.com/lukasheinrich/85c0e6079ff8408edf3cf8d7acb182a8
Additional Information
n/a
Code of Conduct
- [X] I agree to follow the Code of Conduct
A little video
https://user-images.githubusercontent.com/2318083/201794664-0badc5f0-e2ea-4ec9-b3b3-5fa82dd852c6.mov