Examples of mstep()


Examples of com.nr.ci.Gaumixmod.mstep()

    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;
View Full Code Here

Examples of com.nr.ci.Kmeans.mstep()

    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;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.