PinkShnack / TEMUL

Functions for analysis of high resolution electron microscopy and spectroscopy data.
https://temul-toolkit.readthedocs.io
GNU General Public License v3.0
14 stars 11 forks source link

Implement Gaussian Mixture Model for assignment of atom configurations #72

Open michaelhennessyjr opened 2 years ago

michaelhennessyjr commented 2 years ago

As discussed with @PinkShnack, it would be better to have a model fitting procedure for initial assignment of atom configurations, rather than the current "hard intensity limit" method. This would help measure error in atom assignments.

It should calculate the intensity of each atom site in a sublattice, plot a histogram of the intensities, and then fit one gaussian to the histogram for each type of atom configuration. Gaussian overlaps are ambiguous - could take some user input to decide how to interpret them.

Might not work for particularly noisy images, as individual histogram peaks might be difficult to detect.

What needs to be done: