亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
亚洲精品免费看| 国产成人免费视频精品含羞草妖精| 日韩激情一二三区| 白白色亚洲国产精品| 亚洲国产一区二区视频| 国产成人在线视频播放| 欧美精品xxxxbbbb| 亚洲日本在线视频观看| 国产一区二区三区黄视频 | 亚洲一区二区三区视频在线 | 一区二区三区 在线观看视频 | 蜜臀av性久久久久蜜臀aⅴ流畅 | 精品成人免费观看| 亚洲国产精品尤物yw在线观看| 国产精品一二三| 亚洲精品在线免费播放| 五月开心婷婷久久| 欧洲一区二区三区在线| 亚洲欧美激情插| 成人福利在线看| 久久网站热最新地址| 麻豆精品一区二区综合av| 欧美日韩在线一区二区| 亚洲欧美日韩久久精品| 99久久综合99久久综合网站| 久久蜜桃av一区二区天堂| 国内成人自拍视频| 欧美精品一区二区久久婷婷| 麻豆精品一区二区三区| xvideos.蜜桃一区二区| 激情六月婷婷久久| 国产视频一区二区在线观看| 久久狠狠亚洲综合| 精品福利一区二区三区| 国产一区二区电影| 久久久久久久久久电影| 国产91在线|亚洲| 国产人伦精品一区二区| 成人午夜免费视频| 中文字幕一区二区5566日韩| av毛片久久久久**hd| 樱桃国产成人精品视频| 欧美日韩一区二区在线观看视频| 亚洲成人你懂的| 欧美电影一区二区| 久久国产欧美日韩精品| 久久众筹精品私拍模特| 成人性生交大片免费看视频在线| 亚洲欧洲在线观看av| 色综合色综合色综合| 亚洲尤物视频在线| 日韩一级片网站| 国产乱码字幕精品高清av| 亚洲高清中文字幕| 精品88久久久久88久久久| 国产成人精品免费网站| 亚洲男同1069视频| 91精品国产乱码| 成人一道本在线| 午夜私人影院久久久久| 久久亚洲精华国产精华液 | 久久99久久99小草精品免视看| 久久综合国产精品| 一本大道久久a久久精品综合| 日韩电影免费在线看| 国产日韩精品一区二区三区| 91福利在线导航| 国产毛片精品国产一区二区三区| 国产精品久久久久久久久搜平片| 91国内精品野花午夜精品| 久久国产日韩欧美精品| 亚洲精选在线视频| 国产亚洲综合在线| 欧美精品18+| 99re6这里只有精品视频在线观看| 午夜精品久久久久| 成人欧美一区二区三区| 日韩一区二区精品| 色婷婷综合在线| 韩国精品久久久| 亚洲一区二区精品久久av| 久久久久9999亚洲精品| 91精品国产综合久久久久久久| 成人黄页毛片网站| 韩国理伦片一区二区三区在线播放| 亚洲黄网站在线观看| 欧美激情艳妇裸体舞| 欧美一区二区三区性视频| 色噜噜久久综合| 99在线精品视频| 国产高清在线精品| 另类人妖一区二区av| 香蕉乱码成人久久天堂爱免费| 欧美激情综合在线| 久久久美女毛片| 精品少妇一区二区三区在线播放| 在线影院国内精品| 色呦呦一区二区三区| eeuss国产一区二区三区| 激情五月婷婷综合网| 日本在线不卡一区| 石原莉奈一区二区三区在线观看| 亚洲女人小视频在线观看| 日本色综合中文字幕| 婷婷一区二区三区| 亚洲制服丝袜av| 一区二区三区产品免费精品久久75| 中文欧美字幕免费| 国产视频在线观看一区二区三区| 久久只精品国产| 2022国产精品视频| 久久久久亚洲综合| 国产亚洲精品7777| 国产精品色眯眯| 国产精品国产三级国产三级人妇| 久久久久国产成人精品亚洲午夜| 欧美不卡视频一区| 久久久精品影视| 国产欧美日韩激情| 国产精品女同互慰在线看| 中文字幕免费不卡在线| 国产精品久久久久影视| 中文字幕一区二区三区精华液| 国产精品久久久久久福利一牛影视 | 欧美日韩一区不卡| 欧美视频在线播放| 欧美一级一区二区| 日韩精品一区二区三区在线观看| 日韩欧美成人午夜| 国产精品污污网站在线观看| 亚洲人成网站精品片在线观看| 一区二区三区四区在线免费观看| 亚洲一区二区欧美激情| 日韩黄色免费网站| 韩国av一区二区| 成人高清在线视频| 欧美年轻男男videosbes| 精品少妇一区二区三区在线播放| 久久久久久久性| 一区二区在线观看免费| 奇米精品一区二区三区在线观看| 国产麻豆成人传媒免费观看| 在线视频你懂得一区| 日韩美女天天操| 国产精品久久久久久久久搜平片| 亚洲五码中文字幕| 国产九九视频一区二区三区| 色综合天天视频在线观看| 91精品国产麻豆| 亚洲欧美一区二区视频| 日韩精品久久理论片| 国产一区999| 欧美无乱码久久久免费午夜一区| 亚洲精品在线免费播放| 亚洲欧美日韩国产手机在线| 久久精品国产免费| 在线视频欧美区| 国产欧美日韩不卡免费| 日韩黄色免费电影| 91麻豆免费看片| 久久久久国产精品麻豆| 亚洲成va人在线观看| 成人动漫视频在线| 欧美成人一区二区三区在线观看| 国产精品青草综合久久久久99| 日本午夜一本久久久综合| www.欧美.com| 精品久久久久久久久久久院品网 | 紧缚奴在线一区二区三区| 在线亚洲免费视频| 中文一区二区在线观看| 久久99久久99精品免视看婷婷| 在线免费一区三区| 国产精品理论在线观看| 国产真实乱偷精品视频免| 欧美精品电影在线播放| 一区二区视频免费在线观看| 国产福利精品导航| 久久综合视频网| 日产欧产美韩系列久久99| 欧美中文字幕一区二区三区| 国产精品不卡视频| 国产凹凸在线观看一区二区| 欧美不卡在线视频| 日韩在线一区二区三区| 欧美日韩dvd在线观看| 亚洲精品日韩综合观看成人91| 成人教育av在线| 国产午夜精品久久久久久免费视| 蜜臀99久久精品久久久久久软件| 欧美男女性生活在线直播观看| 一区二区三区中文免费| 色综合天天综合色综合av| 中文字幕一区二区三区精华液| 顶级嫩模精品视频在线看| 久久久五月婷婷| 懂色av中文字幕一区二区三区| 久久久久国产精品厨房| 成人手机在线视频| 《视频一区视频二区|