pyhctsa.robust.bf_gauss_mix2¶
- pyhctsa.robust.bf_gauss_mix2(xc, p, delta)¶
Mixture of two Gaussians fitted to a binned distribution by EM (hctsa
BF_GaussMix2).Fits
w1 N(mu1, s1^2) + w2 N(mu2, s2^2)to a histogram/densitypon the equally spaced gridxc, by EM on the grid points weighted by the massp(maximum likelihood for the binned data). Each component’s variance includesdelta^2/12, the variance within a bin. The start is deterministic: means at the lower and upper quartiles, weights 1/2, standard deviations that of the distribution. Runs until the log-likelihood changes by less than 1e-10 (at most 1000 iterations).