Examples of minimize()


Examples of com.granule.CSSFastMin.minimize()

  testMin(css,iBloomCompareTest(css))
  }
 
  public void testMin(String in, String out) {
    CSSFastMin minimizer=new CSSFastMin();
    String minimized = minimizer.minimize(in);
    //System.out.println("####"+minimized);
    assertEquals(minimized, out);
  }
 
  public static String iBloomCompareTest(String in) {
View Full Code Here

Examples of com.granule.JSFastWhitespaceRemover.minimize()

        "f(){};");
  }

  public void test(String in, String out) {
    JSFastWhitespaceRemover minimizer = new JSFastWhitespaceRemover();
    String minimized = minimizer.minimize(in);
    assertEquals(minimized, out);
  }
}
View Full Code Here

Examples of com.nr.min.Amoeba.minimize()

    // Test Amoeba
    System.out.println("Testing Amoeba, interface1");
    Amoeba amb1=new Amoeba(tol);
    for (i=0;i<N;i++) {
      point[0]=point[1]=(2*i);
      min=amb1.minimize(point,del,Func_Amoeba);
      sbeps=sqrt(tol);
      localflag = localflag || (abs(-Bessj1_Amoeba.funk(min[0])) > sbeps)
          || (abs(2*min[1]) > sbeps);
    }
    globalflag = globalflag || localflag;
View Full Code Here

Examples of com.nr.min.Amoeba.minimize()

    double[] dels=new double[M];
    dels[0]=del;
    dels[1]=0.5*del;
    for (i=0;i<N;i++) {
      point[0]=point[1]=(2*i);
      min=amb2.minimize(point,dels,Func_Amoeba);
      sbeps=sqrt(tol);
      localflag = localflag || (abs(-Bessj1_Amoeba.funk(min[0])) > sbeps)
          || (abs(2*min[1]) > sbeps);
    }
    globalflag = globalflag || localflag;
View Full Code Here

Examples of com.nr.min.Amoeba.minimize()

      pp[0][1]=(2*i);
      pp[1][0]=pp[0][0]+del;
      pp[1][1]=pp[0][1];
      pp[2][0]=pp[0][0];
      pp[2][1]=pp[0][1]+0.5*del;
      min=amb3.minimize(pp,Func_Amoeba);
      localflag = localflag || (abs(-Bessj1_Amoeba.funk(min[0])) > sbeps)
          || (abs(2*min[1]) > sbeps);
    }
    globalflag = globalflag || localflag;
    if (localflag) {
View Full Code Here

Examples of com.nr.min.Brent.minimize()

    Brent br = new Brent();
    for (i=0;i<N;i++) {
      a=i;
      b=a+span;
      br.bracket(a,b,this);
      min=br.minimize(this);    // Minimum of bessj0
      localflag = localflag || (abs(Bessj1_Brent(min)) > sbeps);
    }

    globalflag = globalflag || localflag;
    if (localflag) {
View Full Code Here

Examples of com.nr.min.Brent.minimize()

    ang[5]=POTN;
    for (j=3;j<6;j++) ch[j]=chixy.get(ang[j]);
    brent.bracket(ang[0],ang[1],chixy);
    ang[0] = brent.ax; ang[1] = brent.bx; ang[2] = brent.cx;
    ch[0= brent.fa; ch[1= brent.fb; ch[2= brent.fc;
    b = brent.minimize(chixy);
    chi2=chixy.get(b);
    a=aa;
    q=gam.gammq(0.5*(ndat-2),chi2*0.5);
    r2=0.0;
    for (j=0;j<ndat;j++) r2 += ww[j];
View Full Code Here

Examples of com.nr.min.Dbrent.minimize()

    Dbrent dbr = new Dbrent();
    for (i=0;i<N;i++) {
      a=i;
      b=a+span;
      dbr.bracket(a,b,funcd);
      min=dbr.minimize(funcd);    // Minimum of bessj0
      localflag = localflag || (abs(funcd.df(min)) > sbeps);
    }

    globalflag = globalflag || localflag;
    if (localflag) {
View Full Code Here

Examples of com.nr.min.Frprmn.minimize()

    System.out.println("Testing Frprmn");

    Funcd_Frprmn fd = new Funcd_Frprmn();
    Frprmn frprmn = new Frprmn(fd);
    p[0]=p[1]=p[2]=0.1;
    p=frprmn.minimize(p);
    f0=frprmn.fret;
    d0=sqrt(SQR(p[0])+SQR(p[1])+SQR(p[2]));

    for (i=0;i<N;i++) {
      theta=pi*i/N;
 
View Full Code Here

Examples of com.nr.min.Frprmn.minimize()

      theta=pi*i/N;
      phi=pi*i/N;
      p[0]=sin(phi)*cos(theta);
      p[1]=sin(phi)*sin(theta);
      p[2]=cos(phi);
      p=frprmn.minimize(p);
      f=frprmn.fret;
      d=sqrt(SQR(p[0])+SQR(p[1])+SQR(p[2]));
//      System.out.println("     " << abs(d-d0) << " " << abs(f-f0));

      localflag = localflag || abs(d-d0) > sbeps1;
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.