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

Implement single Gaussian model #17

Open
wtbarnes opened this issue Apr 26, 2020 · 1 comment
Open

Implement single Gaussian model #17

wtbarnes opened this issue Apr 26, 2020 · 1 comment
Labels
New Model Proposed new DEM model

Comments

@wtbarnes
Copy link
Member

One of the simplest models for the DEM distribution is assuming a single Gaussian and then doing a chi-squared between forward modeled intensities and the observed intensities to get the nominal value, the mean, and and standard deviation of the Gaussian.

I have a proof of concept for this in this notebook, but it is very slow. I struggled with doing the fit using astropy models because the minimization is on the intensities rather than the model itself. My hand-rolled chi-squared minimization is basically useless for anything except a single spectra.

I'd be interested in seeing if someone else could work out the best way to do this. More generally, it would be interesting to provide a way to do this for any arbitrary astropy model. This would mean the user could specify any arbitrary compound model (e.g. double-gaussian, multi-gaussian + some other function) without having to implement a full model themselves.

@wtbarnes wtbarnes added the New Model Proposed new DEM model label Apr 26, 2020
@PaulJWright
Copy link

PaulJWright commented Nov 6, 2021

Hello Will!

I implemented this notebook in a sandbox version of sunkit-dem I am playing with. While I agree, it is slow, it is definitely a start, and perhaps that is what we really need in the package?

I am curious about the last paragraph though, and will think more about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Model Proposed new DEM model
Projects
None yet
Development

No branches or pull requests

2 participants