Given a 1D array of values, what is the easiest way to find out what the optimal bimodal distribution is for it, where each βmodeβ is a normal distribution? Or, in other words, how can you find a combination of two normal distributions that bests reproduce a 1D array of values?
In particular, I'm interested in implementing this in python, but the answers need not be language specific.
Thanks!
python algorithm
astrofrog
source share