Package org.netlib.util

Examples of org.netlib.util.doubleW


  @SuppressWarnings("unused")
  @Test
  public void test() {
    int i,M=1024,N=100*M;   // M should divide evenly into 2^32
    doubleW dfW=new doubleW(0),chisqW=new doubleW(0),probW=new doubleW(0);
    double df,chisq,prob,average,sbeps=1.e-15;
    int fpr1[]={0x1fd00de3,
        0x71ba8e83,
        0xacc52358,
        0x7ed9f4d5,
View Full Code Here


  }

  @Test
  public void test() {
    int i,nbin,N=100000,M=1000;
    doubleW df = new doubleW(0);
    doubleW chisq = new doubleW(0);
    doubleW prob = new doubleW(0);
    double range=10.0,alpha,beta,binsize,sbeps=2.e-15;
    double fpr[]={4.9886631780655621,2.1169108315306531,0.80651179816628638,
      2.6460107411356208,4.0099509519546519,1.942804746662151,
      3.7042540063195508,2.3875743636427345,1.9483140166958288,
      2.4434025578383811};
View Full Code Here

  @Test
  public void test() {
    int i,DIM=3,N=10000;
    double xave,xvar,yave,yvar,zave,zvar;
    doubleW xaveW=new doubleW(0),xvarW=new doubleW(0);
    doubleW yaveW=new doubleW(0),yvarW=new doubleW(0);
    doubleW zaveW=new doubleW(0),zvarW=new doubleW(0);
    double covxy=0.0,covxz=0.0,covyz=0.0,sbeps=0.05;
    double mmean[]={1.0,2.0,3.0};
    double ccovar[]={1.0,0.5,0.5,0.5,2.0,0.5,0.5,0.5,3.0};
    double[] mean = buildVector(mmean),a = new double[DIM],x= new double[N],y= new double[N],z= new double[N];
    double[][] covar = buildMatrix(DIM,DIM,ccovar);
View Full Code Here

  @Test
  public void test() {
    boolean success;
    int i,j,N=16,M=50;
    doubleW x1=new doubleW(0),x2=new doubleW(0);
    double y[]={2.404825557695773,5.520078110286311,8.653727912911013,
      1.179153443901428e1,1.493091770848779e1,1.807106396791092e1,
      2.121163662987926e1,2.435247153074930e1,2.749347913204025e1,
      3.063460646843198e1,3.377582021357357e1,3.691709835366405e1,
      4.005842576462825e1,4.319979171317673e1,4.634118837166182e1,
View Full Code Here

  }

  @Test
  public void test() {
    int i,N=1000000,M=1000;
    doubleW df = new doubleW(0);
    doubleW chisq = new doubleW(0);
    doubleW prob = new doubleW(0);
   
    double average,sbeps=1.e-15;
   
    // XXX use Hex for int and long
    int fpr1[]={0xbebb6128,0x5bfd7420,0x5e7120b7,0xec23959a,0x5edc440b,
View Full Code Here

  @SuppressWarnings("unused")
  @Test
  public void test() {
    int i,N=100000,M=1000;
    doubleW dfW=new doubleW(0),chisqW=new doubleW(0),probW=new doubleW(0);
    double df,chisq,prob,average,sbeps=1.e-15;
    // use long instead.
    long fpr1[]={1570093361L,531812823L,3036182742L,622162844L,2692057818L,3344863307L,
        185290093L,2977926809L,1052440751L,705435735L};
    double fpr2[]={0.40862881198581419,0.68328679209185939,0.22230878805278581,
View Full Code Here

  @SuppressWarnings("unused")
  @Test
  public void test() {
    int i,nbin,N=100000,M=1000;
    doubleW df = new doubleW(0);
    doubleW chisq = new doubleW(0);
    doubleW prob = new doubleW(0);
    double range=10.0,xl,xu,mu,sig,binsize,sbeps=1.e-15; // beta=1.0 not used
    double fpr[]={-2.3209047306654593,-0.21123844393867705,1.1162025009381211,
      1.3751313608856173,-0.55377040640490538,-1.3110938420290161,
      -0.25911330570481678,0.62048941515098899,-2.6478632188924767,
      -0.13583435624321633};
View Full Code Here

  @Test
  public void test() {
    int i,NPTS=500,NPOLES=10,NFUT=20;
    double sbeps;
    doubleW dum = new doubleW(0);
    double[] d=new double[NPOLES],future=new double[NFUT],data=new double[NPTS];
    boolean localflag, globalflag=false;

   
View Full Code Here

  @SuppressWarnings("unused")
  @Test
  public void test() {
    int i,M=1024,N=100*M;
    intW lword = new intW(0),rword = new intW(0);
    doubleW dfW=new doubleW(0),chisqW=new doubleW(0),probW=new doubleW(0);
    double df,chisq,prob,average;
    double[] bins = new double[M];
    boolean localflag, globalflag=false;
   
   
View Full Code Here

  @Test
  public void test() {
    int i,N=1000,M=10,NFDT=10000;
    double f,flo=0,fhi,fdt,freq1,freq2,PI=acos(-1.0);
    double s,sum1,sum2,target,sbeps;
    doubleW pm = new doubleW(0);
    double[] cof=new double[M],data=new double[N];
    boolean localflag, globalflag=false;

   
View Full Code Here

TOP

Related Classes of org.netlib.util.doubleW

Copyright © 2018 www.massapicom. 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.