title: Using Gaussian Mixture for 1D array in python sklearn
body: <p>I would like to use a Gaussian mixture model to return something like the image below except proper Gaussians. </p>
  
  <p>I'm attempting to use python <code>sklearn.mixture.GaussianMixture</code> but I have failed. I can treat each peak as though it were the height of a histogram for any given x value. My question is: do I have to find a way to transform this graph into a histogram and remove the negative values, or is there a way to apply GMM directly onto this array to produce the red and green gaussians?</p>
  
  <p><a href="https://i.stack.imgur.com/F7zI9.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/F7zI9.jpg" alt="enter image description here"></a></p>