亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? statistics.java

?? Java 編寫的多種數據挖掘算法 包括聚類、分類、預處理等
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
package weka.core;/** * Class implementing some distributions, tests, etc. The code is mostly adapted from the CERN * Jet Java libraries: *  * Copyright 2001 University of Waikato * Copyright 1999 CERN - European Organization for Nuclear Research. * Permission to use, copy, modify, distribute and sell this software and its documentation for * any purpose is hereby granted without fee, provided that the above copyright notice appear * in all copies and that both that copyright notice and this permission notice appear in * supporting documentation.  * CERN and the University of Waikato make no representations about the suitability of this  * software for any purpose. It is provided "as is" without expressed or implied warranty. * * @author peter.gedeck@pharma.Novartis.com * @author wolfgang.hoschek@cern.ch * @author Eibe Frank (eibe@cs.waikato.ac.nz) * @author Richard Kirkby (rkirkby@cs.waikato.ac.nz) * @version $Revision: 1.8 $ */public class Statistics {  /** Some constants */  protected static final double MACHEP =  1.11022302462515654042E-16;  protected static final double MAXLOG =  7.09782712893383996732E2;  protected static final double MINLOG = -7.451332191019412076235E2;  protected static final double MAXGAM = 171.624376956302725;  protected static final double SQTPI  =  2.50662827463100050242E0;  protected static final double SQRTH  =  7.07106781186547524401E-1;  protected static final double LOGPI  =  1.14472988584940017414;    protected static final double big    =  4.503599627370496e15;  protected static final double biginv =  2.22044604925031308085e-16;  /*************************************************   *    COEFFICIENTS FOR METHOD  normalInverse()   *   *************************************************/  /* approximation for 0 <= |y - 0.5| <= 3/8 */  protected static final double P0[] = {    -5.99633501014107895267E1,    9.80010754185999661536E1,    -5.66762857469070293439E1,    1.39312609387279679503E1,    -1.23916583867381258016E0,  };  protected static final double Q0[] = {    /* 1.00000000000000000000E0,*/    1.95448858338141759834E0,    4.67627912898881538453E0,    8.63602421390890590575E1,    -2.25462687854119370527E2,    2.00260212380060660359E2,    -8.20372256168333339912E1,    1.59056225126211695515E1,    -1.18331621121330003142E0,  };    /* Approximation for interval z = sqrt(-2 log y ) between 2 and 8   * i.e., y between exp(-2) = .135 and exp(-32) = 1.27e-14.   */  protected static final double P1[] = {    4.05544892305962419923E0,    3.15251094599893866154E1,    5.71628192246421288162E1,    4.40805073893200834700E1,    1.46849561928858024014E1,    2.18663306850790267539E0,    -1.40256079171354495875E-1,    -3.50424626827848203418E-2,    -8.57456785154685413611E-4,  };  protected static final double Q1[] = {    /*  1.00000000000000000000E0,*/    1.57799883256466749731E1,    4.53907635128879210584E1,    4.13172038254672030440E1,    1.50425385692907503408E1,    2.50464946208309415979E0,    -1.42182922854787788574E-1,    -3.80806407691578277194E-2,    -9.33259480895457427372E-4,  };    /* Approximation for interval z = sqrt(-2 log y ) between 8 and 64   * i.e., y between exp(-32) = 1.27e-14 and exp(-2048) = 3.67e-890.   */  protected static final double  P2[] = {    3.23774891776946035970E0,    6.91522889068984211695E0,    3.93881025292474443415E0,    1.33303460815807542389E0,    2.01485389549179081538E-1,    1.23716634817820021358E-2,    3.01581553508235416007E-4,    2.65806974686737550832E-6,    6.23974539184983293730E-9,  };  protected static final double  Q2[] = {    /*  1.00000000000000000000E0,*/    6.02427039364742014255E0,    3.67983563856160859403E0,    1.37702099489081330271E0,    2.16236993594496635890E-1,    1.34204006088543189037E-2,    3.28014464682127739104E-4,    2.89247864745380683936E-6,    6.79019408009981274425E-9,  };    /**   * Computes standard error for observed values of a binomial   * random variable.   *   * @param p the probability of success   * @param n the size of the sample   * @return the standard error   */  public static double binomialStandardError(double p, int n) {        if (n == 0) {      return 0;     }    return Math.sqrt((p*(1-p))/(double) n);  }    /**   * Returns chi-squared probability for given value and degrees   * of freedom. (The probability that the chi-squared variate   * will be greater than x for the given degrees of freedom.)   *   * @param x the value   * @param df the number of degrees of freedom   * @return the chi-squared probability   */  public static double chiSquaredProbability(double x, double v) {     if( x < 0.0 || v < 1.0 ) return 0.0;    return incompleteGammaComplement( v/2.0, x/2.0 );  }  /**   * Computes probability of F-ratio.   *   * @param F the F-ratio   * @param df1 the first number of degrees of freedom   * @param df2 the second number of degrees of freedom   * @return the probability of the F-ratio.   */  public static double FProbability(double F, int df1, int df2) {        return incompleteBeta( df2/2.0, df1/2.0, df2/(df2+df1*F) );  }  /**   * Returns the area under the Normal (Gaussian) probability density   * function, integrated from minus infinity to <tt>x</tt>   * (assumes mean is zero, variance is one).   * <pre>   *                            x   *                             -   *                   1        | |          2   *  normal(x)  = ---------    |    exp( - t /2 ) dt   *               sqrt(2pi)  | |   *                           -   *                          -inf.   *   *             =  ( 1 + erf(z) ) / 2   *             =  erfc(z) / 2   * </pre>   * where <tt>z = x/sqrt(2)</tt>.   * Computation is via the functions <tt>errorFunction</tt> and <tt>errorFunctionComplement</tt>.   *   * @param a the z-value   * @return the probability of the z value according to the normal pdf   */  public static double normalProbability(double a) {     double x, y, z;     x = a * SQRTH;    z = Math.abs(x);     if( z < SQRTH ) y = 0.5 + 0.5 * errorFunction(x);    else {      y = 0.5 * errorFunctionComplemented(z);      if( x > 0 )  y = 1.0 - y;    }     return y;  }  /**   * Returns the value, <tt>x</tt>, for which the area under the   * Normal (Gaussian) probability density function (integrated from   * minus infinity to <tt>x</tt>) is equal to the argument <tt>y</tt>   * (assumes mean is zero, variance is one).   * <p>   * For small arguments <tt>0 < y < exp(-2)</tt>, the program computes   * <tt>z = sqrt( -2.0 * log(y) )</tt>;  then the approximation is   * <tt>x = z - log(z)/z  - (1/z) P(1/z) / Q(1/z)</tt>.   * There are two rational functions P/Q, one for <tt>0 < y < exp(-32)</tt>   * and the other for <tt>y</tt> up to <tt>exp(-2)</tt>.    * For larger arguments,   * <tt>w = y - 0.5</tt>, and  <tt>x/sqrt(2pi) = w + w**3 R(w**2)/S(w**2))</tt>.   *   * @param y0 the area under the normal pdf   * @return the z-value   */  public static double normalInverse(double y0) {     double x, y, z, y2, x0, x1;    int code;    final double s2pi = Math.sqrt(2.0*Math.PI);    if( y0 <= 0.0 ) throw new IllegalArgumentException();    if( y0 >= 1.0 ) throw new IllegalArgumentException();    code = 1;    y = y0;    if( y > (1.0 - 0.13533528323661269189) ) { /* 0.135... = exp(-2) */      y = 1.0 - y;      code = 0;    }    if( y > 0.13533528323661269189 ) {      y = y - 0.5;      y2 = y * y;      x = y + y * (y2 * polevl( y2, P0, 4)/p1evl( y2, Q0, 8 ));      x = x * s2pi;       return(x);    }    x = Math.sqrt( -2.0 * Math.log(y) );    x0 = x - Math.log(x)/x;    z = 1.0/x;    if( x < 8.0 ) /* y > exp(-32) = 1.2664165549e-14 */      x1 = z * polevl( z, P1, 8 )/p1evl( z, Q1, 8 );    else      x1 = z * polevl( z, P2, 8 )/p1evl( z, Q2, 8 );    x = x0 - x1;    if( code != 0 )      x = -x;    return( x );  }  /**   * Returns natural logarithm of gamma function.   *   * @param x the value   * @return natural logarithm of gamma function   */  public static double lnGamma(double x) {    double p, q, w, z;     double A[] = {      8.11614167470508450300E-4,      -5.95061904284301438324E-4,      7.93650340457716943945E-4,      -2.77777777730099687205E-3,      8.33333333333331927722E-2    };    double B[] = {      -1.37825152569120859100E3,      -3.88016315134637840924E4,      -3.31612992738871184744E5,      -1.16237097492762307383E6,      -1.72173700820839662146E6,      -8.53555664245765465627E5    };    double C[] = {      /* 1.00000000000000000000E0, */      -3.51815701436523470549E2,      -1.70642106651881159223E4,      -2.20528590553854454839E5,      -1.13933444367982507207E6,      -2.53252307177582951285E6,      -2.01889141433532773231E6    };     if( x < -34.0 ) {      q = -x;      w = lnGamma(q);      p = Math.floor(q);      if( p == q ) throw new ArithmeticException("lnGamma: Overflow");      z = q - p;      if( z > 0.5 ) {	p += 1.0;	z = p - q;      }      z = q * Math.sin( Math.PI * z );      if( z == 0.0 ) throw new 	ArithmeticException("lnGamma: Overflow");      z = LOGPI - Math.log( z ) - w;      return z;    }     if( x < 13.0 ) {      z = 1.0;      while( x >= 3.0 ) {	x -= 1.0;	z *= x;      }      while( x < 2.0 ) {	if( x == 0.0 ) throw new 	  ArithmeticException("lnGamma: Overflow");	z /= x;	x += 1.0;      }      if( z < 0.0 ) z = -z;      if( x == 2.0 ) return Math.log(z);      x -= 2.0;      p = x * polevl( x, B, 5 ) / p1evl( x, C, 6);      return( Math.log(z) + p );    }     if( x > 2.556348e305 ) throw new ArithmeticException("lnGamma: Overflow");     q = ( x - 0.5 ) * Math.log(x) - x + 0.91893853320467274178;      if( x > 1.0e8 ) return( q );     p = 1.0/(x*x);    if( x >= 1000.0 )      q += ((   7.9365079365079365079365e-4 * p		- 2.7777777777777777777778e-3) *p	    + 0.0833333333333333333333) / x;    else      q += polevl( p, A, 4 ) / x;    return q;  }  /**   * Returns the error function of the normal distribution.   * The integral is   * <pre>   *                           x    *                            -   *                 2         | |          2   *   erf(x)  =  --------     |    exp( - t  ) dt.   *              sqrt(pi)   | |   *                          -   *                           0   * </pre>   * <b>Implementation:</b>   * For <tt>0 <= |x| < 1, erf(x) = x * P4(x**2)/Q5(x**2)</tt>; otherwise   * <tt>erf(x) = 1 - erfc(x)</tt>.   * <p>   * Code adapted from the <A HREF="http://www.sci.usq.edu.au/staff/leighb/graph/Top.html">   * Java 2D Graph Package 2.4</A>,   * which in turn is a port from the   * <A HREF="http://people.ne.mediaone.net/moshier/index.html#Cephes">Cephes 2.2</A>   * Math Library (C).   *   * @param a the argument to the function.   */  static double errorFunction(double x) {     double y, z;    final double T[] = {      9.60497373987051638749E0,      9.00260197203842689217E1,      2.23200534594684319226E3,      7.00332514112805075473E3,      5.55923013010394962768E4    };    final double U[] = {      //1.00000000000000000000E0,      3.35617141647503099647E1,      5.21357949780152679795E2,      4.59432382970980127987E3,      2.26290000613890934246E4,      4.92673942608635921086E4    };      if( Math.abs(x) > 1.0 ) return( 1.0 - errorFunctionComplemented(x) );    z = x * x;    y = x * polevl( z, T, 4 ) / p1evl( z, U, 5 );    return y;  }  /**   * Returns the complementary Error function of the normal distribution.   * <pre>   *  1 - erf(x) =   *   *                           inf.    *                             -   *                  2         | |          2   *   erfc(x)  =  --------     |    exp( - t  ) dt   *               sqrt(pi)   | |   *                           -   *                            x   * </pre>   * <b>Implementation:</b>   * For small x, <tt>erfc(x) = 1 - erf(x)</tt>; otherwise rational   * approximations are computed.   * <p>   * Code adapted from the <A HREF="http://www.sci.usq.edu.au/staff/leighb/graph/Top.html">   * Java 2D Graph Package 2.4</A>,   * which in turn is a port from the   * <A HREF="http://people.ne.mediaone.net/moshier/index.html#Cephes">Cephes 2.2</A>   * Math Library (C).   *   * @param a the argument to the function.   */  static double errorFunctionComplemented(double a) {     double x,y,z,p,q;      double P[] = {      2.46196981473530512524E-10,      5.64189564831068821977E-1,      7.46321056442269912687E0,      4.86371970985681366614E1,      1.96520832956077098242E2,      5.26445194995477358631E2,      9.34528527171957607540E2,      1.02755188689515710272E3,      5.57535335369399327526E2    };    double Q[] = {      //1.0      1.32281951154744992508E1,      8.67072140885989742329E1,      3.54937778887819891062E2,      9.75708501743205489753E2,      1.82390916687909736289E3,      2.24633760818710981792E3,      1.65666309194161350182E3,      5.57535340817727675546E2    };      double R[] = {      5.64189583547755073984E-1,      1.27536670759978104416E0,      5.01905042251180477414E0,      6.16021097993053585195E0,      7.40974269950448939160E0,      2.97886665372100240670E0    };    double S[] = {      //1.00000000000000000000E0,       2.26052863220117276590E0,      9.39603524938001434673E0,      1.20489539808096656605E1,      1.70814450747565897222E1,      9.60896809063285878198E0,      3.36907645100081516050E0    };      if( a < 0.0 )   x = -a;    else            x = a;      if( x < 1.0 )   return 1.0 - errorFunction(a);      z = -a * a;      if( z < -MAXLOG ) {      if( a < 0 )  return( 2.0 );      else         return( 0.0 );    }      z = Math.exp(z);      if( x < 8.0 ) {      p = polevl( x, P, 8 );      q = p1evl( x, Q, 8 );    } else {      p = polevl( x, R, 5 );      q = p1evl( x, S, 6 );    }      y = (z * p)/q;      if( a < 0 ) y = 2.0 - y;      if( y == 0.0 ) {      if( a < 0 ) return 2.0;      else        return( 0.0 );    }    return y;  }    /**   * Evaluates the given polynomial of degree <tt>N</tt> at <tt>x</tt>.   * Evaluates polynomial when coefficient of N is 1.0.   * Otherwise same as <tt>polevl()</tt>.   * <pre>   *                     2          N   * y  =  C  + C x + C x  +...+ C x   *        0    1     2          N   *   * Coefficients are stored in reverse order:   *   * coef[0] = C  , ..., coef[N] = C  .   *            N                   0   * </pre>   * The function <tt>p1evl()</tt> assumes that <tt>coef[N] = 1.0</tt> and is   * omitted from the array.  Its calling arguments are   * otherwise the same as <tt>polevl()</tt>.   * <p>   * In the interest of speed, there are no checks for out of bounds arithmetic.   *   * @param x argument to the polynomial.   * @param coef the coefficients of the polynomial.   * @param N the degree of the polynomial.   */  static double p1evl( double x, double coef[], int N ) {      double ans;    ans = x + coef[0];      for(int i=1; i<N; i++) ans = ans*x+coef[i];      return ans;  }  /**   * Evaluates the given polynomial of degree <tt>N</tt> at <tt>x</tt>.   * <pre>   *                     2          N   * y  =  C  + C x + C x  +...+ C x   *        0    1     2          N   *   * Coefficients are stored in reverse order:   *   * coef[0] = C  , ..., coef[N] = C  .   *            N                   0   * </pre>   * In the interest of speed, there are no checks for out of bounds arithmetic.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品国产第一区二区三区观看体验| 在线综合+亚洲+欧美中文字幕| 亚洲精品免费在线观看| 欧美亚洲禁片免费| 麻豆精品新av中文字幕| 国产欧美日韩视频在线观看| 91视频在线看| 久久69国产一区二区蜜臀| 欧美极品美女视频| 欧美精品第1页| 高清国产一区二区| 亚洲福利视频三区| 国产日韩欧美一区二区三区乱码| 91国在线观看| 国产福利91精品| 日韩不卡一区二区| 亚洲视频免费看| 精品99999| 欧美色精品在线视频| 成人一道本在线| 蜜臀av亚洲一区中文字幕| 亚洲美女一区二区三区| 久久先锋影音av| 欧美精选一区二区| 色狠狠一区二区| 成人黄色av电影| 夜夜嗨av一区二区三区网页| 2017欧美狠狠色| 欧美日韩国产乱码电影| 91在线国产福利| 国产精品综合二区| 亚洲一区成人在线| 久久久噜噜噜久久人人看 | 国产精品18久久久久久vr| 亚洲成人免费视频| 亚洲视频在线一区| 国产精品色在线| 久久网这里都是精品| 91精品国产综合久久久久久久久久 | 国产精品久久精品日日| 欧美zozo另类异族| 欧美一区二区三区在| 欧美日韩一区视频| 91久久精品一区二区| 99久久99久久综合| 成人综合在线观看| 懂色中文一区二区在线播放| 国产一区二区三区在线观看精品| 日韩精品乱码免费| 亚洲国产日韩a在线播放性色| 国产午夜一区二区三区| 91精品国产一区二区人妖| 一本高清dvd不卡在线观看| 成人av在线一区二区三区| 成人在线综合网| 成人免费看的视频| 丁香六月久久综合狠狠色| 国产传媒欧美日韩成人| 国产乱码精品一区二区三区av | 久久99久久99精品免视看婷婷| 日韩高清不卡一区二区| 亚洲少妇最新在线视频| 亚洲色图制服诱惑 | 久久久噜噜噜久噜久久综合| 2024国产精品| 欧美极品美女视频| 国产精品国产三级国产有无不卡| 日本一区二区三区四区在线视频| 久久亚洲一区二区三区四区| 久久亚洲免费视频| 国产精品久久久久天堂| 国产视频一区在线播放| 中文字幕亚洲一区二区va在线| 日韩欧美激情一区| 久久婷婷综合激情| 中文字幕一区二区三区在线不卡| 欧美国产日韩精品免费观看| 久久久久久久精| 久久精品亚洲国产奇米99| 欧美www视频| 欧美激情综合五月色丁香小说| 久久久久久免费| 国产精品每日更新| 国产精品麻豆久久久| 中文字幕在线观看一区二区| 欧美精品一区二区在线播放| 国产欧美视频一区二区| 成人欧美一区二区三区1314| 亚洲二区在线视频| 国产一区视频在线看| 成人精品视频网站| 欧美亚洲禁片免费| 欧美最猛黑人xxxxx猛交| 日韩精品影音先锋| 国产精品国产三级国产aⅴ入口| 一区二区不卡在线播放| 久久电影网电视剧免费观看| 成人app在线观看| 欧美一区二区三区四区五区| 2021久久国产精品不只是精品| 亚洲精品中文在线影院| 免费观看日韩电影| 国产一区二区三区在线观看免费 | 日本不卡在线视频| 国产福利一区二区| 99久久久精品| 7777精品伊人久久久大香线蕉最新版| 久久精品一区二区三区四区| 亚洲码国产岛国毛片在线| 伦理电影国产精品| 一本色道综合亚洲| 精品成人私密视频| 亚瑟在线精品视频| 国产一区二区免费在线| 日本高清成人免费播放| 久久噜噜亚洲综合| 偷偷要91色婷婷| www.66久久| 欧美高清视频不卡网| 日韩一区二区三区在线观看 | 在线播放国产精品二区一二区四区 | 日韩三级高清在线| 亚洲国产一区视频| av在线播放成人| 久久影院电视剧免费观看| 国产日韩精品一区二区三区在线| 日韩专区中文字幕一区二区| zzijzzij亚洲日本少妇熟睡| 日韩女同互慰一区二区| 亚洲电影一级片| 99精品视频一区| 国产欧美一区二区三区沐欲| 不卡一区二区在线| 一区二区成人在线| 懂色av噜噜一区二区三区av| 欧美精品三级日韩久久| 国产日韩欧美不卡| 麻豆一区二区三| 欧美一区二区观看视频| 亚洲一区在线免费观看| 成人在线视频一区二区| 亚洲成人免费在线| 亚洲综合色噜噜狠狠| 久久亚洲一区二区三区四区| 欧美高清在线精品一区| 亚洲免费成人av| 亚洲国产欧美另类丝袜| 亚洲欧美激情在线| 麻豆国产精品视频| 国产丶欧美丶日本不卡视频| www.日韩大片| 欧美区在线观看| 欧美精品一区二区三区一线天视频| 91精品国产aⅴ一区二区| 欧美日韩国产免费| 精品国产免费久久| 中文欧美字幕免费| 亚洲一区二区三区三| 视频一区二区国产| 国产99久久久国产精品免费看| 国产精品99久久久久久久vr| 不卡免费追剧大全电视剧网站| 日本国产一区二区| 欧美午夜精品一区二区三区| 日韩欧美不卡在线观看视频| 国产精品久久久久久妇女6080| 自拍偷拍国产精品| 日本欧洲一区二区| 久久激情综合网| 国产精品996| 欧美这里有精品| 国产日韩一级二级三级| 亚洲精品国产视频| 日韩高清不卡一区二区三区| 国产成人欧美日韩在线电影| 有坂深雪av一区二区精品| 久久99精品网久久| 欧美日韩精品一区二区天天拍小说 | 国产剧情一区二区三区| 91久久精品一区二区二区| 日韩午夜精品电影| 日韩免费福利电影在线观看| 亚洲欧美偷拍另类a∨色屁股| 六月婷婷色综合| 欧美性videosxxxxx| 日韩三级免费观看| 精品少妇一区二区三区日产乱码 | 欧美精品第1页| 亚洲人成网站影音先锋播放| 老色鬼精品视频在线观看播放| 色综合天天综合色综合av | 成a人片亚洲日本久久| 欧美偷拍一区二区| 亚洲免费观看在线视频| 韩国v欧美v日本v亚洲v| 欧美日韩国产综合久久| 一区二区三区在线观看动漫| 国产在线视频一区二区| 555www色欧美视频| 亚洲精品国产第一综合99久久|