⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 customtransset.java

📁 为了下东西 随便发了个 datamining 的源代码
💻 JAVA
字号:
/**
 * Title:        XELOPES Data Mining Library
 * Description:  Java Data Mining API. Supported standarts: <a href="http://www.dmg.org">Predictive Model Markup Language (PMML 2.0) </a>;  <a href="http://www.omg.org/cwm">DataMining specification for Common Warehouse Metamodel (OMG)</a>.
 * Copyright:    Copyright (c) 2002 Prudential Systems Software GmbH
 * Company:      <a href="mailto:valentine.stepanenko@zsoft.ru">ZSoft, Spb, Russia</a>
 * @author Victor Borichev
 * @author Valentine Stepanenko (valentine.stepanenko@zsoft.ru)
 * @version 1.0
 */

package com.prudsys.pdm.Models.CustomerSeq.Algorithms;

import java.util.Vector;

import com.prudsys.pdm.Models.Sequential.Algorithms.Seq.TransactionSet;

public class CustomTransSet {
  /** size of list of customer's sequences */
  private int size;
  /** list of customer's sequences */
  private Vector transSetList;

  /**
   * Default constructor
   * Creates empty list
   */
  public CustomTransSet() {
    size = 0;
    transSetList = new Vector();
  }
  /**
   * Add customer sequence to the list
   * @param transSet customer sequence to add
   */
  public void addCustomerTransSet(TransactionSet transSet) {
    transSetList.add(transSet);
    size++;
  }
  /**
   * Get customer sequence at specified position
   * @param index position of customer sequence
   * @return customer sequence as TransactionSet
   */
  public TransactionSet getCustomerTransSet(int index) {
    return (TransactionSet)transSetList.get(index);
  }
  /**
   * Clear list of customer sequences
   */
  public void removeAllCustomerTransSets() {
    transSetList.clear();
    size = 0;
  }
  /**
   * Get number of customer sequences in the list
   * @return size of list as int
   */
  public int getSize() {
    return size;
  }
  /**
   * print customer sequences
   */
  public void print() {
    for(int i=0;i<size;i++) ((TransactionSet)transSetList.get(i)).print();
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -