AdaptGauss(Data,Means,SDs,Weights,ParetoRadius,LB,HB,ListOfAdaptGauss,fast)densityMclust of that package, TRUE: Naive but faster EM implementation, which may be numerical unstable, because log(gauss) is not useddata1=c(rnorm(1000))
Vals1=AdaptGauss(data1)
data2=c(rnorm(1000),rnorm(2000)+2,rnorm(1000)*2-1)
Vals2=AdaptGauss(data2,c(-1,0,2),c(2,1,1),c(0.25,0.25,0.5),0.3,-6,6)Run the code above in your browser using DataLab