Examples of cdf()


Examples of com.nr.sf.Poissondist.cdf()

    localflag=false;
    sum=0.0;
    for (i=0;i<20;i++) {
      sum += dist2.p(i);
      c[i]=sum;
      d[i]=dist2.cdf(i+1);
//      System.out.printf(c[i]-d[i]);
      localflag = localflag || abs(c[i]-d[i]) > sbeps;
    }
    globalflag = globalflag || localflag;
    if (localflag) {
View Full Code Here

Examples of com.nr.sf.Poissondist.cdf()

    lambda=10.0;
    Poissondist normc = new Poissondist(lambda);
    sbeps=1.0e-12;
    localflag=false;
    for (i=1;i<20;i++) {
      a=normc.cdf(i);
      b=normc.invcdf(a);
      localflag = localflag || (i-b != 0) && (i-b-1 != 0) ;
    }
    globalflag = globalflag || localflag;
    if (localflag) {
View Full Code Here

Examples of com.nr.sf.Studenttdist.cdf()

        q1 = new Midinf(dist2,-1.e99,-1.0);
        q2 = new Midpnt(dist2,-1.0,x[i]);
        integral=qromo(q1)+qromo(q2);
      }
      c[i]=integral;
      d[i]=normcdf.cdf(x[i]);
//      System.out.printf(c[i] << " %f\n", d[i] << " %f\n", c[i]-d[i]);
      localflag = localflag || abs(c[i]-d[i]) > sbeps;
    }
    globalflag = globalflag || localflag;
    if (localflag) {
View Full Code Here

Examples of com.nr.sf.Studenttdist.cdf()

    Ran myran = new Ran(17);
    sbeps=1.0e-13;
    localflag=false;
    for (i=0;i<1000;i++) {
      u=m-3.0*s+6.0*s*myran.doub();
      a=normc.cdf(u);
      b=normc.invcdf(a);
//      System.out.printf(setprecision(15) << u << " %f\n", b << " %f\n", abs(u-b));
      localflag = localflag || abs(u-b) > sbeps;
    }
    globalflag = globalflag || localflag;
View Full Code Here

Examples of umontreal.iro.lecuyer.probdist.StudentDist.cdf()

     * which is to use the bounds in Chick,Branke,Schmidt together with
     * interval arithmetic.
     */
    double z = -StrictMath.abs(s);
    StudentDist dist = new StudentDist((int) dof);
    double u = dist.cdf(z);
    if (s <= 0) // s=z
      return StrictMath.log(u);
    else
      // s=-z
      return StrictMath.log1p(-u);
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.