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

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

?? dbtransform.java

?? clustering data for the different techniques of data mining
?? JAVA
字號:
/*

  DBTransform.java

  Definition of the class DBTransform which transform the columns of
  a database residing in a file into a collection of Partition
  objects
  
  (P)2002  Dana Cristofor

*/

/*

GAClust - Clustering categorical databases using genetic algorithms
Copyright (C) 2002  Dana Cristofor


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., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA

GAClust was written by Dana Cristofor (dana@cs.umb.edu).

*/

import java.io.*;
import java.util.*;

/**
 * DBTransform
 *
 * @version 	1.0
 * @author	Dana Cristofor
 */
public class DBTransform
{
  /** transforms the database residing in the file <code>fName</code>
   * into a collection of Partition objects
   * @param fName name of the file containing the database
   * @param nRows number of rows
   * @param nCols number of columns
   * @return a Vector containing an Integer representing the number
   * of rows, an Integer representing the number of columns, and a
   * number of Partition objects associated with every column in the
   * database; throws an IOException
  */
  static public  Vector transform(String fName, int nRows, int nCols, 
				  StringBuffer output)
    throws IOException
  {
    int RESERVED_POS = 2;
    Vector v = new Vector(nCols + RESERVED_POS);
    // insert the number of rows and columns
    v.insertElementAt(new Integer(nRows), 0);
    v.insertElementAt(new Integer(nCols), 1);
    
    BufferedReader in
      = new BufferedReader(new FileReader(fName));
    
    int currRowNo = 0;
    String delim = new String(" \t\n\r,");
    
    // stores the currently available integer to be used in the
    // encoding process
    int[] numCodes = new int[nCols]; 
    for (int i = 0; i < nCols; i++)
      numCodes[i] = 1; // first class is encoded with 1
    
    // we still have rows to process
    while (currRowNo < nRows && in.ready())
      {
	String currRow = in.readLine();
	StringTokenizer currRowTok = 
	  new StringTokenizer(currRow, delim);
	
	int currColNo = 0;
	// install each token in the appropriate Partition object
	while (currColNo < nCols && currRowTok.hasMoreTokens())
	  {
	    // for the first row create the Partition objects and
	    // add them to the Vector v
	    if (currRowNo == 0)
	      v.insertElementAt(new Partition(nRows), 
				currColNo + RESERVED_POS);
	    
	    String token = currRowTok.nextToken();
	    Partition currPart = (Partition)v.get(currColNo 
						  + RESERVED_POS);
	    
	    // check if token has already a numeric code
	    if (currPart.hasClassCode(token) == false)
	      // if it doesn't generate the next numeric code for it
	      currPart.setClassCode(token, 
				    new Integer(numCodes[currColNo]++));
	    
	    // put the numeric code in the associated vector
	    int numCode = currPart.getClassCode(token).intValue();
	    currPart.set(currRowNo, numCode);
	    
	    currColNo++;		
	  } // end of tokens per line processing (or end of column
	// processing)
	
	if (currRowNo == 0)
	  {
	    if (currColNo != nCols)
	      {
		output.append("Warning: database " +  fName 
			      + " has fewer than " + nCols 
			      + " columns\n");
		
		// insert the actual number of column in the second
		// position in the returned Vector
		v.setElementAt(new Integer(currColNo), 1);
	      }
	    else
	      if (currRowTok.hasMoreTokens())
		output.append("Warning: database " +  fName 
			      + " truncated to " + nCols 
			      + " columns\n");
	  }
	
	currRowNo++;
      } // end of line processing
    
    if (in.ready())
      // there are more rows in the database
      output.append("Warning: database " + fName + " truncated to " 
		    + currRowNo + " rows\n");
    else
      if (currRowNo < nRows)
	output.append("Warning: database " + fName + " has only " 
		      + currRowNo + " rows, not " + nRows 
		      + " as required\n");
    
    // insert the actual number of rows in the first position in
    // the returned Vector
    v.setElementAt(new Integer(currRowNo), 0);
    in.close();
    
    // set the appropriate size for the Partition objects
    int totalColNo = ((Integer)v.get(1)).intValue();
    for (int i = 0; i < totalColNo; i++)
      ((Partition)v.get(i + RESERVED_POS)).setSize(currRowNo);

    return v;
  }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美一激情一区二区三区| 欧美人与性动xxxx| 国内精品国产成人国产三级粉色 | 久久99精品久久久久久| 亚洲一级在线观看| 亚洲123区在线观看| 同产精品九九九| 麻豆精品视频在线| 国产精品911| 91在线观看免费视频| 欧美午夜宅男影院| 日韩区在线观看| 欧美国产禁国产网站cc| 亚洲欧美日韩国产成人精品影院 | 国产精品资源站在线| 国产成人精品影视| 99re这里都是精品| 欧美在线小视频| 日韩午夜小视频| 中文欧美字幕免费| 亚洲一区av在线| 极品销魂美女一区二区三区| 成人黄色网址在线观看| 欧美在线一区二区| www国产精品av| 亚洲免费在线视频一区 二区| 日本亚洲欧美天堂免费| 国产大片一区二区| 欧美日本一区二区| 国产日产精品1区| 首页亚洲欧美制服丝腿| 国产精品1区二区.| 欧美婷婷六月丁香综合色| 欧美成人欧美edvon| 亚洲视频香蕉人妖| 精品一区二区免费在线观看| 色婷婷综合久久久中文字幕| 欧美本精品男人aⅴ天堂| 亚洲欧美自拍偷拍| 国产在线麻豆精品观看| 欧美性videosxxxxx| 久久久久久久久久久久电影| 亚洲国产精品自拍| www.亚洲在线| 亚洲精品一线二线三线无人区| 亚洲精品乱码久久久久久黑人| 国内久久婷婷综合| 亚洲国产高清aⅴ视频| 日韩精品一卡二卡三卡四卡无卡| 成人h版在线观看| 2欧美一区二区三区在线观看视频| 亚洲综合在线五月| 成人激情免费视频| 久久综合久久综合久久| 肉肉av福利一精品导航| 91在线观看成人| 国产精品女同一区二区三区| 狠狠狠色丁香婷婷综合激情| 91精品国产综合久久福利软件| 亚洲人精品午夜| 99久久99久久综合| 国产精品丝袜91| 国产精品一区二区男女羞羞无遮挡| 91精品婷婷国产综合久久性色 | 国产午夜精品一区二区三区视频 | 奇米精品一区二区三区在线观看一| 99re成人在线| 自拍偷拍亚洲综合| av欧美精品.com| 中文字幕av资源一区| 国产二区国产一区在线观看| 久久先锋影音av鲁色资源 | 国产亚洲制服色| 国产一区二区三区日韩 | 在线视频中文字幕一区二区| 成人欧美一区二区三区视频网页| 成人美女视频在线观看| 国产精品国模大尺度视频| 成人性色生活片免费看爆迷你毛片| 亚洲精品在线电影| 国产盗摄精品一区二区三区在线| 国产欧美日韩视频一区二区 | 中文字幕中文字幕在线一区| 成年人午夜久久久| 伊人婷婷欧美激情| 欧美日韩国产免费一区二区| 日本中文字幕一区二区有限公司| 日韩欧美激情一区| 国产一区二区主播在线| 亚洲欧洲一区二区在线播放| 91小视频免费观看| 图片区小说区国产精品视频| 日韩美女视频一区二区在线观看| 国产福利一区二区三区视频| 中文字幕在线一区| 欧美专区日韩专区| 激情都市一区二区| 亚洲图片激情小说| 欧美精品粉嫩高潮一区二区| 国产原创一区二区| 亚洲免费观看高清完整版在线观看| 精品日韩av一区二区| proumb性欧美在线观看| 午夜视频在线观看一区二区| 26uuu精品一区二区三区四区在线| 成人伦理片在线| 婷婷久久综合九色国产成人| 国产日韩欧美制服另类| 欧美色综合网站| 国产伦精品一区二区三区免费迷 | www成人在线观看| 99riav久久精品riav| 麻豆久久久久久| 国产精品国产成人国产三级 | 成人av片在线观看| 日韩不卡一区二区三区| 国产精品欧美精品| 日韩欧美一区二区视频| 在线视频你懂得一区| 国产精品一二三区在线| 婷婷国产在线综合| 亚洲精品中文字幕乱码三区| 26uuu亚洲| 欧美电影在哪看比较好| 99精品国产91久久久久久| 国内成人免费视频| 日韩精品五月天| 日本亚洲免费观看| 亚洲一卡二卡三卡四卡无卡久久 | 欧美婷婷六月丁香综合色| 国产精品资源在线| 麻豆成人综合网| 亚洲电影在线播放| 亚洲精品国产第一综合99久久| 国产亚洲1区2区3区| 欧美变态tickle挠乳网站| 欧美日韩国产影片| 欧美日韩日日摸| 在线观看亚洲专区| 色婷婷国产精品| 99r国产精品| 91在线一区二区三区| 成人h版在线观看| eeuss影院一区二区三区| 国产乱子伦一区二区三区国色天香| 日韩成人精品视频| 美女视频黄 久久| 美腿丝袜亚洲一区| 久草这里只有精品视频| 国产一区二区三区在线观看精品 | 蜜桃精品视频在线| 奇米777欧美一区二区| 青青草一区二区三区| 伦理电影国产精品| 韩国午夜理伦三级不卡影院| 久久成人免费电影| 国产精品主播直播| www.欧美日韩| 一本色道**综合亚洲精品蜜桃冫| 97久久精品人人做人人爽50路| 色综合一区二区| 欧美视频中文字幕| 91精品国产aⅴ一区二区| 日韩午夜电影av| 国产亚洲精品bt天堂精选| 国产精品久久久久三级| 亚洲三级久久久| 视频一区二区国产| 国产在线播放一区| 97精品超碰一区二区三区| 欧美午夜精品免费| 精品久久久久一区| 中文字幕一区二区不卡| 亚洲国产一区二区视频| 久久超碰97中文字幕| 成人一道本在线| 欧美午夜不卡视频| 精品日产卡一卡二卡麻豆| 中文字幕日韩一区二区| 亚洲va欧美va人人爽| 国产精品香蕉一区二区三区| 93久久精品日日躁夜夜躁欧美| 欧美理论片在线| 欧美国产禁国产网站cc| 天堂在线一区二区| 国产不卡视频一区| 欧美卡1卡2卡| 国产精品毛片大码女人| 三级在线观看一区二区| 成人午夜激情视频| 欧美三级午夜理伦三级中视频| 久久久亚洲高清| 午夜视频久久久久久| 国产成人无遮挡在线视频| 欧美精品精品一区| 18涩涩午夜精品.www| 国产一区二区不卡老阿姨| 欧美色图激情小说| 国产精品白丝在线| 国产一区二区h|