powered by
Pdf4Mixtures(Data, Means, SDs, Weights,IsLogDistribution,PlotIt)
PlotMixtures
data=c(rnorm(1000),rnorm(2000)+2,rnorm(1000)*2-1) Pdf4Mixtures(data,c(-1,0,2),c(2,1,1),c(0.25,0.25,0.5), PlotIt=TRUE)
Run the code above in your browser using DataLab