Take GMM weights into account. Add Gaussian histogram.
Fix variance underflow.