6162636465666768697071
Gaumixmod gmix = new Gaumixmod(x,guess); for (i=0;i<100;i++) { flag=gmix.estep(); if (flag < 1.e-6) break; gmix.mstep(); } // check for convergence // System.out.println(" flag: %f\n", flag); localflag = flag > 1.e-6;
6465666768697071727374
Kmeans kmean=new Kmeans(x,guess); // *** put in some weird guesses for (i=0;i<100;i++) { flag=kmean.estep(); if (flag == 0) break; kmean.mstep(); } // check for convergence // System.out.println(" flag: %f\n", flag); localflag = flag > 0;