-
Notifications
You must be signed in to change notification settings - Fork 18
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
[Feature] Statistical analysis of model from data #23
Comments
In principle, we should have a However, from my experience, one needs rather a variety of specific models for different use cases - though mostly a combination of Gaussians and Lorentzians. I guess what you could be aiming at is a function that takes any model, identifies the components and for the components the parameters and then calculates statistics on each of those. Additionally, it would be a possibility to have a function that takes a signal-axis interval as input and calculates statistics on the data for that interval - though in principle it is a one-liner with As in |
I would propose the following way forward:
It should go into HyperSpy and not LumisSpy as it could then be more general for any model and could be useful also for other types of signals. @Divitini, do you still want to work on it,? Have you already implemented something that could be a starting point? We have a student who might be able to work on it at some point? |
Sorry for the delay on this - I'm trying to dig out the code, although it was very basic and can be rewritten easily. I might have a postdoc who could be interested in doing this. I agree on your suggestions on the best way forward, thanks a lot for that! |
It would be useful to add a quick function that calculates some parameters to estimate the homogeneity in emission in a given area.
What I did in the past was to take the fitted model from a SI and use mean and std dev of the gaussian intensity and position. Also, I had a threshold on the relative intensity of a peak so that one could have an estimate of how many of the pixels are non-emissive.
I'm currently writing that into a function, let me know if anyone has any thoughts on:
Also, note that there is a function in hyperspy - print_summary_statistics - but I think that a luminescence-oriented function would be better.
I suspect that since gaussian fitting will probably be a core function for luminescence there'll need to be a unified way to fit and process the resulting data.
The text was updated successfully, but these errors were encountered: