Plots the histogram of data and overlays the estimated mixture density and its components.
plot_mixture(data, params1, params2, w, label = "EM")NULL (plot is saved as PNG)
Numeric vector of observations.
Vector of parameters for component 1 (alpha, beta, gamma, delta).
Vector of parameters for component 2.
Mixing weight for component 1.
Optional label for output file.