Examples of doub()


Examples of com.nr.ran.Ran.doub()

    Ran myran=new Ran(17);
    j=0;
    for (i=0;i<N/4;i++) {
      xx[j]=myran.doub();   // Put a point in each x-y quadrant
      yy[j++]=myran.doub();
      xx[j]=-myran.doub();
      yy[j++]=myran.doub();
      xx[j]=-myran.doub();
      yy[j++]=-myran.doub();
      xx[j]=myran.doub();
      yy[j++]=-myran.doub();
View Full Code Here

Examples of com.nr.ran.Ran.doub()

    j=0;
    for (i=0;i<N/4;i++) {
      xx[j]=myran.doub();   // Put a point in each x-y quadrant
      yy[j++]=myran.doub();
      xx[j]=-myran.doub();
      yy[j++]=myran.doub();
      xx[j]=-myran.doub();
      yy[j++]=-myran.doub();
      xx[j]=myran.doub();
      yy[j++]=-myran.doub();
    }  
View Full Code Here

Examples of com.nr.ran.Ran.doub()

    for (i=0;i<N/4;i++) {
      xx[j]=myran.doub();   // Put a point in each x-y quadrant
      yy[j++]=myran.doub();
      xx[j]=-myran.doub();
      yy[j++]=myran.doub();
      xx[j]=-myran.doub();
      yy[j++]=-myran.doub();
      xx[j]=myran.doub();
      yy[j++]=-myran.doub();
    }  
    quadct(0.0,0.0,xx,yy,fa,fb,fc,fd);
View Full Code Here

Examples of com.nr.ran.Ran.doub()

      xx[j]=myran.doub();   // Put a point in each x-y quadrant
      yy[j++]=myran.doub();
      xx[j]=-myran.doub();
      yy[j++]=myran.doub();
      xx[j]=-myran.doub();
      yy[j++]=-myran.doub();
      xx[j]=myran.doub();
      yy[j++]=-myran.doub();
    }  
    quadct(0.0,0.0,xx,yy,fa,fb,fc,fd);
//    System.out.printf(fa << " %f\n", fb << " %f\n", fc << " %f\n", fd);
View Full Code Here

Examples of com.nr.ran.Ran.doub()

      yy[j++]=myran.doub();
      xx[j]=-myran.doub();
      yy[j++]=myran.doub();
      xx[j]=-myran.doub();
      yy[j++]=-myran.doub();
      xx[j]=myran.doub();
      yy[j++]=-myran.doub();
    }  
    quadct(0.0,0.0,xx,yy,fa,fb,fc,fd);
//    System.out.printf(fa << " %f\n", fb << " %f\n", fc << " %f\n", fd);
    localflag = (fa.val != 0.25) || (fb.val != 0.25) || (fc.val != 0.25) || (fd.val != 0.25);
View Full Code Here

Examples of com.nr.ran.Ran.doub()

      xx[j]=-myran.doub();
      yy[j++]=myran.doub();
      xx[j]=-myran.doub();
      yy[j++]=-myran.doub();
      xx[j]=myran.doub();
      yy[j++]=-myran.doub();
    }  
    quadct(0.0,0.0,xx,yy,fa,fb,fc,fd);
//    System.out.printf(fa << " %f\n", fb << " %f\n", fc << " %f\n", fd);
    localflag = (fa.val != 0.25) || (fb.val != 0.25) || (fc.val != 0.25) || (fd.val != 0.25);
    globalflag = globalflag || localflag;
View Full Code Here

Examples of com.nr.ran.Ran.doub()

    // Test ksone
    System.out.println("Testing ksone");

    Ran myran =new Ran(17);
    func1_ksone func1_ksone = new func1_ksone();
    for (j=0;j<NPTS;j++) data1[j]=myran.doub();
    ksone(data1,func1_ksone,d1,prob1);
//    System.out.printf(setw(17) << d1 << setw(17) << prob1);
    localflag = localflag || (prob1.val < 0.2);
    globalflag = globalflag || localflag;
    if (localflag) {
View Full Code Here

Examples of com.nr.ran.Ran.doub()

    // Test values against those of rj(x,y,z);
    Ran myran = new Ran(17);
   
    for (i=0;i<N;i++) {
      x=10.0*myran.doub();
      y=10.0*myran.doub();
      z=10.0*myran.doub();

      f1[i]=rd(x,y,z);
      f2[i]=rj(x,y,z,z);
View Full Code Here

Examples of com.nr.ran.Ran.doub()

    // Test values against those of rj(x,y,z);
    Ran myran = new Ran(17);
   
    for (i=0;i<N;i++) {
      x=10.0*myran.doub();
      y=10.0*myran.doub();
      z=10.0*myran.doub();

      f1[i]=rd(x,y,z);
      f2[i]=rj(x,y,z,z);
    }
View Full Code Here

Examples of com.nr.ran.Ran.doub()

    Ran myran = new Ran(17);
   
    for (i=0;i<N;i++) {
      x=10.0*myran.doub();
      y=10.0*myran.doub();
      z=10.0*myran.doub();

      f1[i]=rd(x,y,z);
      f2[i]=rj(x,y,z,z);
    }
    System.out.printf("rd: Maximum discrepancy = %f\n", maxel(vecsub(f1,f2)));
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.