Add MDP for maximum likelihood method#525
Add MDP for maximum likelihood method#525eneights wants to merge 13 commits intocositools:developfrom
Conversation
Codecov Report❌ Patch coverage is
... and 2 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Signed-off-by: Israel Martinez <imc@umd.edu>
|
Thanks @eneights. I added the Issues/requests/comments:
A note for later: I think that eventually this function need to be split in two: a generic one that takes |
|
Thanks, @israelmcmc! I'm not sure what to make of the fits failing and it does make me worry the MDP is being underestimated. But I'm not sure what to look into to see why they're failing, since they're all unpolarized and the only difference between them is the Poisson fluctuations. About changing (spectrum, model, source_direction) for a single input, I had tried quickly before to only have the model as an input since this contains the spectrum and source_direction, but I couldn't figure out how to get the spectrum object out instead of just the dictionary of parameters. I'll look into it more a little later. |
|
It's updated now so the user only has to input the model and not the spectrum and position in addition |
I added a function to calculate the minimum detectable polarization for the maximum likelihood method, and added the calculation to the example notebook. This runs quite slowly, and should probably be parallelized. The notebook only runs 100 iterations for now, but in reality we will want something like ~10,000. It also currently can only handle a single source and background component.