iq_readout.pdfs.simple_2d_gaussian_double_mixture#

simple_2d_gaussian_double_mixture(z, mu_0_x, mu_0_y, mu_1_x, mu_1_y, sigma, angle)[source]#

Probability density function corresponding to the sum of two 2D Gaussians.

The two Gaussians have means (mu_0_x, mu_0_y) and (mu_1_x, mu_1_y), and same covariance matrix diag(sigma**2, sigma**2).

The weight of the first Gaussian is sin(angle)**2 and of the second Gaussian is cos(angle)**2 to ensure that the PDF is normalized.

Parameters:
znp.ndarray(…, 2)

Points in the 2D space.

mu_0_x

Mean of the first coordinate for the first Gaussian.

mu_0_y

Mean of the second coordinate for the firs Gaussian.

mu_1_x

Mean of the first coordinate for the second Gaussian.

mu_1_y

Mean of the second coordinate for the second Gaussian.

sigma

Standard deviation of the two coordinates for both Gaussians.

angle

Weight factor for the Gaussian mixture.

Returns:
probnp.ndarray(…)

Values of the probability density function.