Plots the fitted EM mixture density alongside a manually defined reference mixture to visually compare estimation quality.
plot_comparison(data, p1, p2, w)Invisibly returns the file path to the saved PNG image of the comparison plot.
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.