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

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

?? fastvector.java

?? Apriori.java算法 Apriori.java算法 Apriori.java算法
?? JAVA
字號:
//Container Interface

/* *    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. *//* *    FastVector.java *    Copyright (C) 1999 Eibe Frank * */import java.util.*;import java.io.*;/**d * Implements a fast vector class without synchronized * methods. Replaces java.util.Vector. (Synchronized methods tend to * be slow.) * * @author Eibe Frank (eibe@cs.waikato.ac.nz) * @version $Revision: 1.7 $ */public class FastVector implements Copyable, Serializable {  /**   * Class for enumerating the vector's elements.   */  public class FastVectorEnumeration implements Enumeration {    /** The counter. */    private int m_Counter;    /** The vector. */    private FastVector m_Vector;    /** Special element. Skipped during enumeration. */    private int m_SpecialElement;    /**     * Constructs an enumeration.     *     * @param vector the vector which is to be enumerated     */    public FastVectorEnumeration(FastVector vector) {      m_Counter = 0;      m_Vector = vector;      m_SpecialElement = -1;    }    /**     * Constructs an enumeration with a special element.     * The special element is skipped during the enumeration.     *     * @param vector the vector which is to be enumerated     * @param special the index of the special element     */    public FastVectorEnumeration(FastVector vector, int special) {      m_Vector = vector;      m_SpecialElement = special;      if (special == 0) {	m_Counter = 1;      } else {	m_Counter = 0;      }    }    /**     * Tests if there are any more elements to enumerate.     *     * @return true if there are some elements left     */    public final boolean hasMoreElements() {      if (m_Counter < m_Vector.size()) {	return true;      }      return false;    }    /**     * Returns the next element.     *     * @return the next element to be enumerated     */    public final Object nextElement() {        Object result = m_Vector.elementAt(m_Counter);      m_Counter++;      if (m_Counter == m_SpecialElement) {	m_Counter++;      }      return result;    }  }  /** The array of objects. */  private Object[] m_Objects;  /** The current size; */  private int m_Size;  /** The capacity increment */  private int m_CapacityIncrement;    /** The capacity multiplier. */  private double m_CapacityMultiplier;  /**   * Constructs an empty vector with initial   * capacity zero.   */  public FastVector() {      m_Objects = new Object[0];    m_Size = 0;    m_CapacityIncrement = 1;    m_CapacityMultiplier = 2;  }  /**   * Constructs a vector with the given capacity.   *   * @param capacity the vector's initial capacity   */  public FastVector(int capacity) {    m_Objects = new Object[capacity];    m_Size = 0;    m_CapacityIncrement = 1;    m_CapacityMultiplier = 2;  }  /**   * Constructs a vector with the given capacity, capacity    * increment and capacity mulitplier.   *   * @param capacity the vector's initial capacity   */  public FastVector(int capacity, int capIncrement, 		    double capMultiplier) {    m_Objects = new Object[capacity];    m_Size = 0;    m_CapacityIncrement = capIncrement;    m_CapacityMultiplier = capMultiplier;  }  /**   * Adds an element to this vector. Increases its   * capacity if its not large enough.   *   * @param element the element to add   */  public final void addElement(Object element) {    Object[] newObjects;    if (m_Size == m_Objects.length) {      newObjects = new Object[(int)m_CapacityMultiplier *			     (m_Objects.length +			      m_CapacityIncrement)];      System.arraycopy(m_Objects, 0, newObjects, 0, m_Size);      m_Objects = newObjects;    }    m_Objects[m_Size] = element;    m_Size++;  }  /**   * Returns the capacity of the vector.   *   * @return the capacity of the vector   */  public final int capacity() {      return m_Objects.length;  }  /**   * Produces a shallow copy of this vector.   *   * @return the new vector   */  public final Object copy() {    FastVector copy = new FastVector(m_Objects.length, 				     m_CapacityIncrement,				     m_CapacityMultiplier);    copy.m_Size = m_Size;    System.arraycopy(m_Objects, 0, copy.m_Objects, 0, m_Size);    return copy;  }  /**   * Clones the vector and shallow copies all its elements.   * The elements have to implement the Copyable interface.   *    * @return the new vector   */  public final Object copyElements() {    FastVector copy = new FastVector(m_Objects.length, 				     m_CapacityIncrement,				     m_CapacityMultiplier);    copy.m_Size = m_Size;    for (int i = 0; i < m_Size; i++) {      copy.m_Objects[i] = ((Copyable)m_Objects[i]).copy();    }    return copy;  }  /**   * Returns the element at the given position.   *   * @param index the element's index   * @return the element with the given index   */  public final Object elementAt(int index) {    return m_Objects[index];  }  /**   * Returns an enumeration of this vector.   *   * @return an enumeration of this vector   */  public final Enumeration elements() {      return new FastVectorEnumeration(this);  }  /**   * Returns an enumeration of this vector, skipping the   * element with the given index.   *   * @param index the element to skip   * @return an enumeration of this vector   */  public final Enumeration elements(int index) {      return new FastVectorEnumeration(this, index);  }  /**   * Returns the first element of the vector.   *   * @return the first element of the vector   */  public final Object firstElement() {    return m_Objects[0];  }  /**   * Searches for the first occurence of the given argument,    * testing for equality using the equals method.    *   * @param element the element to be found   * @return the index of the first occurrence of the argument    * in this vector; returns -1 if the object is not found   */  public final int indexOf(Object element) {    for (int i = 0; i < m_Size; i++) {      if (element.equals(m_Objects[i])) {	return i;      }    }    return -1;  }  /**   * Inserts an element at the given position.   *   * @param element the element to be inserted   * @param index the element's index   */  public final void insertElementAt(Object element, int index) {    Object[] newObjects;    if (m_Size < m_Objects.length) {      System.arraycopy(m_Objects, index, m_Objects, index + 1,                        m_Size - index);      m_Objects[index] = element;    } else {      newObjects = new Object[(int)m_CapacityMultiplier *			     (m_Objects.length +			      m_CapacityIncrement)];      System.arraycopy(m_Objects, 0, newObjects, 0, index);      newObjects[index] = element;      System.arraycopy(m_Objects, index, newObjects, index + 1,		       m_Size - index);      m_Objects = newObjects;    }    m_Size++;  }  /**   * Returns the last element of the vector.   *   * @return the last element of the vector   */  public final Object lastElement() {    return m_Objects[m_Size - 1];  }  /**   * Deletes an element from this vector.   *   * @param index the index of the element to be deleted   */  public final void removeElementAt(int index) {    System.arraycopy(m_Objects, index + 1, m_Objects, index,                      m_Size - index - 1);    m_Size--;  }  /**   * Removes all components from this vector and sets its    * size to zero.    */  public final void removeAllElements() {    m_Objects = new Object[m_Objects.length];    m_Size = 0;  }  /**   * Appends all elements of the supplied vector to this vector.   *   * @param toAppend the FastVector containing elements to append.   */  public final void appendElements(FastVector toAppend) {    setCapacity(size() + toAppend.size());    System.arraycopy(toAppend.m_Objects, 0, m_Objects, size(), toAppend.size());    m_Size = m_Objects.length;  }  /**    * Returns all the elements of this vector as an array   *   * @param an array containing all the elements of this vector   */  public final Object [] toArray() {    Object [] newObjects = new Object[size()];    System.arraycopy(m_Objects, 0, newObjects, 0, size());    return newObjects;  }  /**   * Sets the vector's capacity to the given value.   *   * @param capacity the new capacity   */  public final void setCapacity(int capacity) {    Object[] newObjects = new Object[capacity];       System.arraycopy(m_Objects, 0, newObjects, 0, Math.min(capacity, m_Size));    m_Objects = newObjects;    if (m_Objects.length < m_Size)      m_Size = m_Objects.length;  }  /**   * Sets the element at the given index.   *   * @param element the element to be put into the vector   * @param index the index at which the element is to be placed   */  public final void setElementAt(Object element, int index) {    m_Objects[index] = element;  }  /**   * Returns the vector's current size.   *   * @return the vector's current size   */  public final int size() {    return m_Size;  }  /**   * Swaps two elements in the vector.   *   * @param first index of the first element   * @param second index of the second element   */  public final void swap(int first, int second) {    Object help = m_Objects[first];    m_Objects[first] = m_Objects[second];    m_Objects[second] = help;  }  /**   * Sets the vector's capacity to its size.   */  public final void trimToSize() {    Object[] newObjects = new Object[m_Size];        System.arraycopy(m_Objects, 0, newObjects, 0, m_Size);    m_Objects = newObjects;  }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
一本色道亚洲精品aⅴ| 视频一区二区欧美| 99精品桃花视频在线观看| 日韩制服丝袜先锋影音| 国产欧美一区二区三区鸳鸯浴 | 成人ar影院免费观看视频| 亚洲午夜精品在线| 欧美激情在线看| 欧美日本在线视频| 26uuu另类欧美| 色哟哟一区二区三区| 精彩视频一区二区三区| 夜夜操天天操亚洲| 中文字幕亚洲一区二区av在线| 91精品国产综合久久福利软件 | 天天综合网 天天综合色| 国产蜜臀av在线一区二区三区| 在线电影院国产精品| 99精品国产视频| 国产精品亚洲第一区在线暖暖韩国| 亚洲成人一区二区| 亚洲乱码国产乱码精品精小说| 久久久精品国产99久久精品芒果| 91精品国产手机| 欧美理论片在线| 欧美亚州韩日在线看免费版国语版| 国产精品一区二区黑丝| 老司机午夜精品| 日本成人在线看| 蜜乳av一区二区| 日韩综合小视频| 三级影片在线观看欧美日韩一区二区 | 久久疯狂做爰流白浆xx| 日本中文一区二区三区| 亚洲国产精品久久人人爱| 一区二区三区视频在线观看 | 麻豆精品国产91久久久久久| 亚洲精品视频在线看| 亚洲婷婷综合色高清在线| 国产精品美女久久久久aⅴ国产馆| 久久久国产午夜精品| 26uuu亚洲综合色欧美 | 国产一区激情在线| 日本伊人午夜精品| 日韩精品久久理论片| 手机精品视频在线观看| 蜜臀av在线播放一区二区三区| 日本欧美韩国一区三区| 久久国内精品视频| 韩国成人精品a∨在线观看| 日韩一区二区免费视频| 精品少妇一区二区三区在线视频| 日韩女优视频免费观看| 精品91自产拍在线观看一区| 久久久天堂av| 国产精品福利在线播放| 亚洲美女偷拍久久| 亚洲成av人片| 日本不卡视频在线观看| 精品一区二区三区视频| 国产aⅴ精品一区二区三区色成熟| 成人网在线免费视频| 97精品久久久午夜一区二区三区| 欧美在线不卡一区| 4438x亚洲最大成人网| 精品久久久久久最新网址| 久久婷婷久久一区二区三区| 中文字幕中文乱码欧美一区二区| 亚洲综合久久久| 看片网站欧美日韩| 国产成人午夜视频| 色综合久久久久久久久| 欧美一区二区成人6969| 国产农村妇女精品| 亚洲一区二区欧美| 精品影视av免费| 99精品久久免费看蜜臀剧情介绍| 欧美日韩电影在线播放| 精品福利二区三区| 最好看的中文字幕久久| 日本在线不卡一区| 成人av高清在线| 91麻豆精品久久久久蜜臀 | 久久只精品国产| 亚洲靠逼com| 久草这里只有精品视频| 成人的网站免费观看| 欧美日韩精品高清| 亚洲国产经典视频| 肉色丝袜一区二区| 99久久综合国产精品| 91精品国产综合久久福利软件| 国产精品毛片a∨一区二区三区| 亚洲123区在线观看| 国产99久久久国产精品潘金网站| 欧美三区在线视频| 国产精品视频线看| 麻豆91精品视频| 色狠狠色狠狠综合| 中文字幕的久久| 蜜臀av一区二区在线观看| 91捆绑美女网站| 久久久久国产精品麻豆ai换脸 | 亚洲欧洲日韩av| 老司机午夜精品| 欧美亚洲动漫制服丝袜| 国产精品欧美极品| 激情综合色综合久久| 欧美美女视频在线观看| 亚洲三级在线播放| 成人一二三区视频| 精品国产乱码久久久久久夜甘婷婷 | 91免费视频网址| 国产色91在线| 免费高清在线一区| 欧美性猛片aaaaaaa做受| 国产精品全国免费观看高清 | 在线观看av不卡| 亚洲欧洲av色图| 懂色av中文字幕一区二区三区| 欧美成人福利视频| 日韩高清在线观看| 777午夜精品视频在线播放| 亚洲一区二区黄色| 91久久国产最好的精华液| 中文字幕欧美激情| 国产精品888| 精品精品国产高清a毛片牛牛 | 欧美日本免费一区二区三区| 亚洲人妖av一区二区| 国产91高潮流白浆在线麻豆| 精品国产伦一区二区三区免费 | 欧美日韩在线观看一区二区 | 免费成人深夜小野草| 在线电影院国产精品| 午夜精品成人在线视频| 欧洲生活片亚洲生活在线观看| 最新高清无码专区| 日本韩国视频一区二区| 亚洲香蕉伊在人在线观| 在线观看中文字幕不卡| 亚洲成a天堂v人片| 欧美一级黄色大片| 久久99精品久久只有精品| 精品国产凹凸成av人网站| 精品午夜久久福利影院| 久久久久国产一区二区三区四区| 国产黄色精品视频| 国产精品天天看| 91老师片黄在线观看| 亚洲在线中文字幕| 在线不卡a资源高清| 美女一区二区在线观看| 26uuu久久综合| 99精品国产一区二区三区不卡| 亚洲免费视频中文字幕| 欧美三级三级三级爽爽爽| 日本不卡高清视频| 欧美—级在线免费片| 一本色道久久综合精品竹菊| 亚洲高清免费观看| 精品成人一区二区三区四区| 粉嫩欧美一区二区三区高清影视| 亚洲男同性视频| 69p69国产精品| 国产九九视频一区二区三区| 亚洲欧洲成人精品av97| 欧美精品日韩综合在线| 国产一区在线观看麻豆| 亚洲欧洲av另类| 欧美日本一道本| 国产一区二区三区在线观看免费| 国产精品久久看| 欧美精品 日韩| 国产精品综合一区二区三区| 亚洲免费av在线| 欧美变态tickle挠乳网站| 91在线观看一区二区| 免费精品99久久国产综合精品| 亚洲国产精品传媒在线观看| 欧美日韩综合在线免费观看| 国产一区二区0| 亚洲自拍另类综合| 久久综合色鬼综合色| 欧美伊人久久久久久久久影院| 极品少妇xxxx偷拍精品少妇| 亚洲精品国产一区二区三区四区在线 | 青青国产91久久久久久| 国产清纯美女被跳蛋高潮一区二区久久w| 色呦呦日韩精品| 国产一区二区三区在线观看免费视频 | 欧美人与z0zoxxxx视频| 国产成人av电影在线| 亚洲成av人**亚洲成av**| 国产精品热久久久久夜色精品三区 | 国产一区二区在线影院| 亚洲成人自拍一区| 一区免费观看视频| 欧美精品一区二区蜜臀亚洲| 欧美日韩精品一区二区三区|