pyhf icon indicating copy to clipboard operation
pyhf copied to clipboard

closed form density functions as additive modifiers

Open lukasheinrich opened this issue 3 years ago • 1 comments

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

lukasheinrich avatar Nov 15 '22 00:11 lukasheinrich

A little video

https://user-images.githubusercontent.com/2318083/201794664-0badc5f0-e2ea-4ec9-b3b3-5fa82dd852c6.mov

lukasheinrich avatar Nov 15 '22 00:11 lukasheinrich