Examples of dev()


Examples of ch.cern.mig.posix.FileStat.dev()

        if (System.getProperty("os.name").startsWith("Windows")) {
            id = queuePath;
        } else {
            // set id to stat->st_dev + stat->st_ino
            FileStat stat = posix.stat(queuePath);
            id = "" + stat.dev() + ":" + stat.ino();
        }
    }

    private static String name(int r) {
        return String.format("%013x%01x", System.nanoTime() / 1000, r);
View Full Code Here

Examples of com.nr.ran.Binomialdev.dev()

    pp=0.5;
    Binomialdev myran = new Binomialdev(M,pp,17);
    localflag=false;
    for (i=0;i<10;i++)
//      System.out.printf(setw(25) << setprecision(20) << myran.dev());
      localflag=localflag || (myran.dev() != fingerprint[i]);
    globalflag = globalflag || localflag;
    if (localflag) {
      fail("*** Binomialdev: dev() does not match fingerprint");
     
    }
View Full Code Here

Examples of com.nr.ran.Binomialdev.dev()

    for (i=0;i<M;i++) {
      ebins[i]=(N)*expect.p(i);
      bins[i]=0;
    }
    for (i=0;i<N;i++) {
      nbin=myran.dev();
      if ((nbin >= 0) && (nbin < M)) bins[nbin] += 1;
    }
    chsone(bins,ebins,df,chisq,prob);
    System.out.printf("     chisq,dev(): %f\n  prob: %f\n",chisq.val, prob.val);
    localflag = (prob.val < 0.05);
View Full Code Here

Examples of com.nr.ran.Cauchydev.dev()

    sig=1.0;
    Cauchydev myran = new Cauchydev(mu,sig,17);
    localflag=false;
    for (i=0;i<10;i++) {
      //System.out.printf("%.20f    %.20f\n", myran.dev(), fingerprint[i]);
      localflag=localflag || abs(myran.dev()-fingerprint[i])>sbeps;
    }
    globalflag = globalflag || localflag;
    if (localflag) {
      // fail("*** Cauchydev: dev() does not match fingerprint");
     
View Full Code Here

Examples of com.nr.ran.Cauchydev.dev()

      x[i]=xl+binsize*i;
      ebins[i]=(N)*binsize*expect.p(x[i]+0.5*binsize);
      bins[i]=0;
    }
    for (i=0;i<N;i++) {
      nbin=(int)(floor((0.5*range+myran.dev())/binsize));
      if ((nbin >= 0) && (nbin < M)) bins[nbin] += 1;
    }
    chsone(bins,ebins,df,chisq,prob);
    System.out.printf("     chisq,dev(): %f  prob: %f\n",chisq.val, prob.val);
    localflag = (prob.val < 0.05);
View Full Code Here

Examples of com.nr.ran.Expondev.dev()

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

    Expondev edev = new Expondev(1.0,17);
    for (i=0;i<NPTS;i++) {
      x=edev.dev();
      ibin=(int)(x*NBINS/3.0);
      if (ibin < NBINS) ++bins1[ibin];
    }
    for (i=0;i<NBINS;i++) bins2[i]=bins1[i];
    chstwo(bins1,bins2,df,chsq,prob,0);
View Full Code Here

Examples of com.nr.ran.Expondev.dev()

     
    }

    for (i=0;i<NBINS;i++) bins2[i]=0;
    for (i=0;i<NPTS;i++) {
      x=edev.dev();
      ibin=(int)(x*NBINS/3.0);
      if (ibin < NBINS) ++bins2[ibin];
    }
    chstwo(bins1,bins2,df,chsq,prob,0);
//    System.out.printf(df << " %f\n", chsq << " %f\n", prob);
View Full Code Here

Examples of com.nr.ran.Expondev.dev()

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

    Expondev edev=new Expondev(1.0,17);
    for (k=0;k<NPTS;k++) {
      x=edev.dev();
      ibin=(int)(x*NBINS/3.0);
      if (ibin < NBINS) ++bins[ibin];
    }
    for (i=0;i<NBINS;i++) ebins[i]=bins[i];
    chsone(bins,ebins,df,chsq,prob,0);
View Full Code Here

Examples of com.nr.ran.Expondev.dev()

    // Check fingerprint of doub()
    Expondev myran = new Expondev(beta,17);
    localflag=false;
    for (i=0;i<10;i++)
      localflag=localflag || abs(myran.dev()-fingerprint[i])>sbeps;
    globalflag = globalflag || localflag;
    if (localflag) {
      fail("*** Expondev: dev() does not match fingerprint");
     
    }
View Full Code Here

Examples of com.nr.ran.Expondev.dev()

      x[i]=binsize*i;
      ebins[i]=N*binsize*expect.p(x[i]+0.5*binsize);
      bins[i]=0;
    }
    for (i=0;i<N;i++) {
      nbin=(int)(floor(myran.dev()/binsize));
      if (nbin < M) bins[nbin] += 1;
    }
    chsone(bins,ebins,df,chisq,prob);
    System.out.printf("     chisq,dev(): %f  prob: %f\n", chisq.val,prob.val);
    localflag = (prob.val < 0.05);
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.