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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? pacematrix.java

?? 一個小型的數(shù)據(jù)挖掘器應(yīng)用軟件,綜合數(shù)據(jù)挖掘的各種功能
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
/* *    This program is free software; you can redistribute it and/or modify *    it under the terms of the GNU General Public License as published by *    the Free Software Foundation; either version 2 of the License, or (at *    your option) any later version. * *    This program is distributed in the hope that it will be useful, but *    WITHOUT ANY WARRANTY; without even the implied warranty of *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU *    General Public License for more details. * *    You should have received a copy of the GNU General Public License *    along with this program; if not, write to the Free Software *    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  *//* *    PaceMatrix.java *    Copyright (C) 2002 Yong Wang * */package weka.classifiers.functions.pace;import weka.core.matrix.DoubleVector;import weka.core.matrix.FlexibleDecimalFormat;import weka.core.matrix.IntVector;import weka.core.matrix.Matrix;import weka.core.matrix.Maths;import java.util.Random;import java.text.DecimalFormat;/** * Class for matrix manipulation used for pace regression. <p> * * REFERENCES <p> *  * Wang, Y. (2000). "A new approach to fitting linear models in high * dimensional spaces." PhD Thesis. Department of Computer Science, * University of Waikato, New Zealand. <p> *  * Wang, Y. and Witten, I. H. (2002). "Modeling for optimal probability * prediction." Proceedings of ICML'2002. Sydney. <p> * * @author Yong Wang (yongwang@cs.waikato.ac.nz) * @version $Revision: 1.3 $ */public class PaceMatrix   extends Matrix {    /** for serialization */  static final long serialVersionUID = 2699925616857843973L;      /* ------------------------     Constructors     * ------------------------ */    /** Construct an m-by-n PACE matrix of zeros.       @param m    Number of rows.      @param n    Number of colums.  */  public PaceMatrix( int m, int n ) {    super( m, n );  }  /** Construct an m-by-n constant PACE matrix.      @param m    Number of rows.      @param n    Number of colums.      @param s    Fill the matrix with this scalar value.  */  public PaceMatrix( int m, int n, double s ) {    super( m, n, s );  }      /** Construct a PACE matrix from a 2-D array.      @param A    Two-dimensional array of doubles.      @throws  IllegalArgumentException All rows must have the same length  */  public PaceMatrix( double[][] A ) {    super( A );  }  /** Construct a PACE matrix quickly without checking arguments.      @param A    Two-dimensional array of doubles.      @param m    Number of rows.      @param n    Number of colums.  */  public PaceMatrix( double[][] A, int m, int n ) {    super( A, m, n );  }      /** Construct a PaceMatrix from a one-dimensional packed array      @param vals One-dimensional array of doubles, packed by columns (ala Fortran).      @param m    Number of rows.      @throws  IllegalArgumentException Array length must be a multiple of m.  */  public PaceMatrix( double vals[], int m ) {    super( vals, m );  }      /** Construct a PaceMatrix with a single column from a DoubleVector       @param v    DoubleVector  */  public PaceMatrix( DoubleVector v ) {    this( v.size(), 1 );    setMatrix( 0, v.size()-1, 0, v );  }      /** Construct a PaceMatrix from a Matrix       @param X    Matrix   */  public PaceMatrix( Matrix X ) {    super( X.getRowDimension(), X.getColumnDimension() );    A = X.getArray();  }      /* ------------------------     Public Methods     * ------------------------ */  /** Set the row dimenion of the matrix   *  @param rowDimension the row dimension   */  public void setRowDimension( int rowDimension )   {    m = rowDimension;  }  /** Set the column dimenion of the matrix   *  @param columnDimension the column dimension   */  public void setColumnDimension( int columnDimension )   {    n = columnDimension;  }  /**    * Clone the PaceMatrix object.   *    * @return the clone   */  public Object clone () {    PaceMatrix X = new PaceMatrix(m,n);    double[][] C = X.getArray();    for (int i = 0; i < m; i++) {      for (int j = 0; j < n; j++) {	C[i][j] = A[i][j];      }    }    return (Object) X;  }      /** Add a value to an element and reset the element   *  @param i    the row number of the element   *  @param j    the column number of the element   *  @param s    the double value to be added with   */  public void setPlus(int i, int j, double s) {    A[i][j] += s;  }  /** Multiply a value with an element and reset the element   *  @param i    the row number of the element   *  @param j    the column number of the element   *  @param s    the double value to be multiplied with   */  public void setTimes(int i, int j, double s) {    A[i][j] *= s;  }  /** Set the submatrix A[i0:i1][j0:j1] with a same value    *  @param i0 the index of the first element of the column   *  @param i1 the index of the last element of the column   *  @param j0 the index of the first column   *  @param j1 the index of the last column   *  @param s the value to be set to   */  public void setMatrix( int i0, int i1, int j0, int j1, double s ) {    try {      for( int i = i0; i <= i1; i++ ) {	for( int j = j0; j <= j1; j++ ) {	  A[i][j] = s;	}      }    } catch( ArrayIndexOutOfBoundsException e ) {      throw new ArrayIndexOutOfBoundsException( "Index out of bounds" );    }  }    /** Set the submatrix A[i0:i1][j] with the values stored in a   *  DoubleVector   *  @param i0 the index of the first element of the column   *  @param i1 the index of the last element of the column   *  @param j  the index of the column   *  @param v the vector that stores the values*/  public void setMatrix( int i0, int i1, int j, DoubleVector v ) {    for( int i = i0; i <= i1; i++ ) {      A[i][j] = v.get(i-i0);    }  }  /** Set the whole matrix from a 1-D array    *  @param v    1-D array of doubles   *  @param columnFirst   Whether to fill the column first or the row.   *  @throws  ArrayIndexOutOfBoundsException Submatrix indices   */  public void setMatrix ( double[] v, boolean columnFirst ) {    try {      if( v.length != m * n ) 	throw new IllegalArgumentException("sizes not match.");      int i, j, count = 0;      if( columnFirst ) {	for( i = 0; i < m; i++ ) {	  for( j = 0; j < n; j++ ) {	    A[i][j] = v[count];	    count ++;	  }	}      }      else {	for( j = 0; j < n; j++ ) {	  for( i = 0; i < m; i++ ){	    A[i][j] = v[count];	    count ++;	  }	}      }    } catch( ArrayIndexOutOfBoundsException e ) {      throw new ArrayIndexOutOfBoundsException( "Submatrix indices" );    }  }  /** Returns the maximum absolute value of all elements       @return the maximum value  */  public double maxAbs () {    double ma = Math.abs(A[0][0]);    for (int j = 0; j < n; j++) {      for (int i = 0; i < m; i++) {	ma = Math.max(ma, Math.abs(A[i][j]));      }    }    return ma;  }  /** Returns the maximum absolute value of some elements of a column,      that is, the elements of A[i0:i1][j].      @param i0 the index of the first element of the column      @param i1 the index of the last element of the column      @param j  the index of the column      @return the maximum value */  public double maxAbs ( int i0, int i1, int j ) {    double m = Math.abs(A[i0][j]);    for (int i = i0+1; i <= i1; i++) {      m = Math.max(m, Math.abs(A[i][j]));    }    return m;  }  /** Returns the minimum absolute value of some elements of a column,      that is, the elements of A[i0:i1][j].      @param i0 the index of the first element of the column      @param i1 the index of the last element of the column      @param column the index of the column      @return the minimum value   */  public double minAbs ( int i0, int i1, int column ) {    double m = Math.abs(A[i0][column]);    for (int i = i0+1; i <= i1; i++) {      m = Math.min(m, Math.abs(A[i][column]));    }    return m;  }      /** Check if the matrix is empty   *   @return true if the matrix is empty   */  public boolean  isEmpty(){    if(m == 0 || n == 0) return true;    if(A == null) return true;    return false;  }      /** Return a DoubleVector that stores a column of the matrix    *  @param j the index of the column   *  @return the column   */  public DoubleVector  getColumn( int j ) {    DoubleVector v = new DoubleVector( m );    double [] a = v.getArray();    for(int i = 0; i < m; i++)      a[i] = A[i][j];    return v;  }  /** Return a DoubleVector that stores some elements of a column of the   *  matrix    *  @param i0 the index of the first element of the column   *  @param i1 the index of the last element of the column   *  @param j  the index of the column   *  @return the DoubleVector   */  public DoubleVector  getColumn( int i0, int i1, int j ) {    DoubleVector v = new DoubleVector( i1-i0+1 );    double [] a = v.getArray();    int count = 0;    for( int i = i0; i <= i1; i++ ) {      a[count] = A[i][j];      count++;    }    return v;  }      /** Multiplication between a row (or part of a row) of the first matrix   *  and a column (or part or a column) of the second matrix.   *  @param i the index of the row in the first matrix   *  @param j0 the index of the first column in the first matrix   *  @param j1 the index of the last column in the first matrix   *  @param B the second matrix   *  @param l the index of the column in the second matrix   *  @return the result of the multiplication   */  public double  times( int i, int j0, int j1, PaceMatrix B, int l ) {    double s = 0.0;    for(int j = j0; j <= j1; j++ ) {      s += A[i][j] * B.A[j][l];    }    return s;  }    /** Decimal format for converting a matrix into a string   *  @return the default decimal format   */  protected DecimalFormat []  format() {    return format(0, m-1, 0, n-1, 7, false );  }    /** Decimal format for converting a matrix into a string   *  @param digits the number of digits   *  @return the decimal format   */  protected DecimalFormat []  format( int digits ) {    return format(0, m-1, 0, n-1, digits, false);  }  /** Decimal format for converting a matrix into a string   *  @param digits the number of digits   *  @param trailing   *  @return the decimal format   */  protected DecimalFormat []  format( int digits, boolean trailing ) {    return format(0, m-1, 0, n-1, digits, trailing);  }    /** Decimal format for converting a matrix into a string   *  @param digits the number of digits   *  @param i0   *  @param i1   *  @param j   *  @param digits   *  @param trailing   *  @return the decimal format   */  protected DecimalFormat  format(int i0, int i1, int j, int digits, 				  boolean trailing) {    FlexibleDecimalFormat df = new FlexibleDecimalFormat(digits, trailing);    df.grouping( true );    for(int i = i0; i <= i1; i ++ )      df.update( A[i][j] );    return df;  }    /** Decimal format for converting a matrix into a string   *  @param digits the number of digits   *  @param i0   *  @param i1   *  @param j   *  @param trailing   *  @param digits   *  @return the decimal format   */  protected DecimalFormat []  format(int i0, int i1, int j0, int j1, 				     int digits, boolean trailing) {    DecimalFormat [] f = new DecimalFormat[j1-j0+1];    for( int j = j0; j <= j1; j++ ) {

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩电影在线免费看| 国产在线精品一区二区| 久久综合综合久久综合| 色婷婷亚洲综合| 久久精子c满五个校花| 国模无码大尺度一区二区三区| av福利精品导航| 久久人人爽爽爽人久久久| 午夜电影久久久| 91免费小视频| 国产精品久久久久久久久免费丝袜 | 欧美老肥妇做.爰bbww| 中文字幕欧美国产| 国产精品99久久不卡二区| 欧美不卡视频一区| 美女性感视频久久| 欧美丰满少妇xxxxx高潮对白 | 欧美性生活久久| 国产精品久久免费看| 国产成人h网站| 久久精品一级爱片| 国产一区二区三区高清播放| 日韩欧美国产一二三区| 青青青伊人色综合久久| 欧美日韩国产经典色站一区二区三区 | 亚洲精品乱码久久久久久黑人| 国产一区二区不卡在线| 久久久久久亚洲综合影院红桃 | 亚洲午夜羞羞片| 91福利资源站| 亚洲一二三四在线| 欧美综合在线视频| 亚洲一区二区三区视频在线| 91国偷自产一区二区使用方法| 日本一区二区免费在线观看视频| 国产一区在线观看视频| 久久精品一区二区三区四区| 韩国av一区二区三区四区| 久久精品欧美一区二区三区不卡 | 欧美日韩国产高清一区二区三区 | 欧美私人免费视频| 伊人色综合久久天天| 色婷婷精品久久二区二区蜜臀av| 亚洲国产裸拍裸体视频在线观看乱了| 色综合天天综合色综合av| 椎名由奈av一区二区三区| 色94色欧美sute亚洲线路一ni | 一区二区三区日韩精品视频| 欧美色偷偷大香| 免费欧美日韩国产三级电影| 美女视频一区二区三区| 久久99久久99精品免视看婷婷 | 毛片av一区二区| 99re视频精品| 国产精品青草综合久久久久99| 一二三四区精品视频| 久久精品国产99| 国产在线日韩欧美| 国内成人精品2018免费看| 久久99国产精品久久99果冻传媒| 午夜精品福利视频网站| 久久99精品久久久久| 国产久卡久卡久卡久卡视频精品| 99精品视频在线观看| 日韩三级在线观看| 26uuu久久综合| 成人免费不卡视频| 性久久久久久久久久久久| 欧美sm极限捆绑bd| bt7086福利一区国产| 日日骚欧美日韩| 国产精品卡一卡二| 欧美精品久久天天躁| 丰满少妇在线播放bd日韩电影| 亚洲欧美经典视频| 久久这里只精品最新地址| 欧美日韩一区视频| 国产成人精品aa毛片| 日韩高清不卡一区二区三区| 中文成人综合网| 欧美一个色资源| 欧美性猛片xxxx免费看久爱| 国产91富婆露脸刺激对白| 琪琪一区二区三区| 亚洲自拍与偷拍| 国产精品国产a| 欧美狂野另类xxxxoooo| 91在线视频网址| 欧美日本在线观看| 欧美大片在线观看一区| 亚洲精品久久7777| 欧美日韩综合不卡| 三级在线观看一区二区| 欧美大片在线观看一区二区| 亚洲精品一区二区三区99| 91久久精品一区二区三| 精品国产伦一区二区三区观看体验 | 肉肉av福利一精品导航| 欧美一级黄色大片| 欧美人伦禁忌dvd放荡欲情| 26uuu精品一区二区在线观看| 91麻豆精品国产综合久久久久久| 国产69精品久久99不卡| 国产欧美日韩视频一区二区| 色94色欧美sute亚洲线路二| 日韩av二区在线播放| 精品视频999| 久久99最新地址| 丝袜亚洲另类丝袜在线| 精品一区二区在线观看| 日本道精品一区二区三区| 天堂一区二区在线| 亚洲精品免费电影| 亚洲日本成人在线观看| 最新成人av在线| 自拍偷拍国产精品| 亚洲免费在线视频| 亚洲国产精品久久人人爱| 一区二区三区色| 亚洲成a人v欧美综合天堂下载| 亚洲午夜久久久久久久久电影院| 亚洲精品视频免费看| 亚洲一区二区三区美女| 日日夜夜精品视频天天综合网| 日本中文一区二区三区| 激情五月激情综合网| 国产福利91精品一区二区三区| 国产999精品久久久久久绿帽| 国产精品一区久久久久| 成人小视频免费在线观看| 99免费精品视频| 在线观看免费成人| 日韩一级欧美一级| 久久众筹精品私拍模特| 亚洲国产精品精华液2区45| **欧美大码日韩| 亚洲愉拍自拍另类高清精品| 欧美aaaaaa午夜精品| 国产成人精品午夜视频免费| 91丝袜呻吟高潮美腿白嫩在线观看| 色哟哟一区二区三区| 91精品国产一区二区| 国产亚洲精品久| 亚洲精品免费一二三区| 久久精品999| 99精品欧美一区二区三区小说 | 欧美一区二区私人影院日本| 久久亚洲精精品中文字幕早川悠里 | 蜜桃久久久久久久| 顶级嫩模精品视频在线看| 在线视频综合导航| 久久综合色之久久综合| 一区av在线播放| 极品销魂美女一区二区三区| 色综合久久中文综合久久牛| 欧美一区国产二区| 亚洲色图视频免费播放| 精久久久久久久久久久| 色综合天天在线| 精品日韩一区二区三区| 亚洲一区二区视频在线观看| 国产一区二区美女诱惑| 67194成人在线观看| 中文字幕日韩精品一区| 激情综合一区二区三区| 日本高清成人免费播放| 欧美激情一区二区三区不卡| 日韩高清不卡在线| 成人app软件下载大全免费| 欧美妇女性影城| 伊人一区二区三区| 成人av网站免费| 26uuu国产电影一区二区| 亚洲成a人在线观看| eeuss鲁一区二区三区| 亚洲精品一区二区三区福利| 日韩精品成人一区二区三区| 99久久久久免费精品国产| 久久综合久久99| 久久精品国产免费看久久精品| 欧美色综合久久| 日日欢夜夜爽一区| 日本福利一区二区| 亚洲丝袜精品丝袜在线| 不卡免费追剧大全电视剧网站| 精品国产91九色蝌蚪| 毛片不卡一区二区| 91精品国产色综合久久| 视频一区在线播放| 欧美日韩1区2区| 亚洲国产另类精品专区| 色激情天天射综合网| 亚洲人成网站色在线观看| 91蜜桃在线免费视频| 亚洲视频小说图片| 色又黄又爽网站www久久| 一区二区三区在线播| 在线欧美日韩国产| 亚洲高清三级视频| 欧美一区二区视频在线观看2022 |