Examples of vegas()


Examples of com.nr.ran.VEGAS.vegas()

    VEGAS vegas = new VEGAS() {
      public double fxn(final double[] x, final double wgt){
        return torusfunc1(x, wgt);
      }
    };
    vegas.vegas(regn,0,1000,100,-1,tgral,sd,chi2a);
//    System.out.printf(chi2a);
    localflag = chi2a.val > 1.2;
    globalflag = globalflag || localflag;
    if (localflag) {
      fail("*** vegas: chi-square for test #1 is too high");
View Full Code Here

Examples of com.nr.ran.VEGAS.vegas()

    if (localflag) {
      fail("*** vegas: chi-square for test #1 is too high");
     
    }

    vegas.vegas(regn,1,100000,1,-1,tgral,sd,chi2a);

//    System.out.printf(tgral << " %f\n", sd << " %f\n", chi2a);
//    System.out.printf(SQR(PI)*R1*SQR(R2));
    localflag = abs(tgral.val-SQR(PI)*R1*SQR(R2)) > 2.0*sd.val;
    globalflag = globalflag || localflag;
View Full Code Here

Examples of com.nr.ran.VEGAS.vegas()

    vegas = new VEGAS() {
      public double fxn(final double[] x, final double wgt){
        return torusfunc2(x, wgt);
      }
    };
    vegas.vegas(regn,0,1000,100,-1,tgral,sd,chi2a);
//    System.out.printf(chi2a);
    localflag = chi2a.val > 1.2;
    globalflag = globalflag || localflag;
    if (localflag) {
      fail("*** vegas: chi-square for test #2 is too high");
View Full Code Here

Examples of com.nr.ran.VEGAS.vegas()

    if (localflag) {
      fail("*** vegas: chi-square for test #2 is too high");
     
    }

    vegas.vegas(regn,1,100000,1,-1,tgral,sd,chi2a);

//    System.out.printf(tgral << " %f\n", sd << " %f\n", chi2a);
//    System.out.printf(2.0*PI*SQR(R1)*SQR(R2)*(1+SQR(R2/R1)/4.0));
    localflag = abs(tgral.val-2.0*PI*SQR(R1)*SQR(R2)*(1+SQR(R2/R1)/4.0)) > 2.0*sd.val;
    globalflag = globalflag || localflag;
View Full Code Here

Examples of com.nr.ran.VEGAS.vegas()

    vegas = new VEGAS() {
      public double fxn(final double[] x, final double wgt){
        return torusfunc3(x, wgt);
      }
    };
    vegas.vegas(regn,0,1000,100,-1,tgral,sd,chi2a);
//    System.out.printf(chi2a);
    localflag = chi2a.val > 1.2;
    globalflag = globalflag || localflag;
    if (localflag) {
      fail("*** vegas: chi-square for test #3 is too high");
View Full Code Here

Examples of com.nr.ran.VEGAS.vegas()

    if (localflag) {
      fail("*** vegas: chi-square for test #3 is too high");
     
    }

    vegas.vegas(regn,1,100000,1,-1,tgral,sd,chi2a);

//    System.out.printf(tgral << " %f\n", sd << " %f\n", chi2a);
//    System.out.printf(SQR(PI)*R1*SQR(SQR(R2))/4.0);
    localflag = abs(tgral.val-SQR(PI)*R1*SQR(SQR(R2))/4.0) > 2.0*sd.val;
    globalflag = globalflag || localflag;
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.