spice-herald / RQpy

This repository provides helpful tools for DM search analysis using detectors studied by the Pyle Group.
GNU General Public License v3.0
4 stars 3 forks source link

Add maximum likelihood fitting routine #156

Closed slwatkins closed 4 years ago

slwatkins commented 4 years ago

I've added a couple of functions that use iminuit to do maximum likelihood fitting for some common spectral shapes:

This supports multiple of each background (except flat background, since multiples would be degenerate).

Also added a corresponding demo notebook, which shows how to use the functions. It's a little bit unwieldy at first, but hopefully the demo is helpful.

And, as always, did some PEP8 white space fixes....

Resolves #56.