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

📄 serobject.java

📁 数据挖掘中聚类的算法
💻 JAVA
字号:
/* *    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. *//* *    Copyright (C) 2004 *    & Matthias Schubert (schubert@dbs.ifi.lmu.de) *    & Zhanna Melnikova-Albrecht (melnikov@cip.ifi.lmu.de) *    & Rainer Holzmann (holzmann@cip.ifi.lmu.de) */package weka.clusterers.forOPTICSAndDBScan.OPTICS_GUI;import weka.core.FastVector;import java.io.Serializable;/** * <p> * SERObject.java <br/> * Authors: Rainer Holzmann, Zhanna Melnikova-Albrecht <br/> * Date: Sep 15, 2004 <br/> * Time: 9:43:00 PM <br/> * $ Revision 1.4 $ <br/> * </p> * * @author Zhanna Melnikova-Albrecht (melnikov@cip.ifi.lmu.de) * @author Rainer Holzmann (holzmann@cip.ifi.lmu.de) * @version $Revision: 1.3 $ */public class SERObject    implements Serializable {    /** for serialization */    private static final long serialVersionUID = -6022057864970639151L;      private FastVector resultVector;    private int databaseSize;    private int numberOfAttributes;    private double epsilon;    private int minPoints;    private boolean opticsOutputs;    private String database_Type;    private String database_distanceType;    private int numberOfGeneratedClusters;    private String elapsedTime;    // *****************************************************************************************************************    // constructors    // *****************************************************************************************************************    public SERObject(FastVector resultVector,                     int databaseSize,                     int numberOfAttributes,                     double epsilon,                     int minPoints,                     boolean opticsOutputs,                     String database_Type,                     String database_distanceType,                     int numberOfGeneratedClusters,                     String elapsedTime) {        this.resultVector = resultVector;        this.databaseSize = databaseSize;        this.numberOfAttributes = numberOfAttributes;        this.epsilon = epsilon;        this.minPoints = minPoints;        this.opticsOutputs = opticsOutputs;        this.database_Type = database_Type;        this.database_distanceType = database_distanceType;        this.numberOfGeneratedClusters = numberOfGeneratedClusters;        this.elapsedTime = elapsedTime;    }    // *****************************************************************************************************************    // methods    // *****************************************************************************************************************    /**     * Returns the resultVector     * @return FastVector resultVector     */    public FastVector getResultVector() {        return resultVector;    }    /**     * Returns the database's size     * @return int databaseSize     */    public int getDatabaseSize() {        return databaseSize;    }    /**     * Returns the number of Attributes of the specified database     * @return int numberOfAttributes     */    public int getNumberOfAttributes() {        return numberOfAttributes;    }    /**     * Returns the value of epsilon     * @return double epsilon     */    public double getEpsilon() {        return epsilon;    }    /**     * Returns the number of minPoints     * @return int minPoints     */    public int getMinPoints() {        return minPoints;    }    /**     * Returns the flag for writing actions     * @return True if the outputs are to write to a file, else false     */    public boolean isOpticsOutputs() {        return opticsOutputs;    }    /**     * Returns the type of the used index (database)     * @return String Index-type     */    public String getDatabase_Type() {        return database_Type;    }    /**     * Returns the distance-type     * @return String Distance-type     */    public String getDatabase_distanceType() {        return database_distanceType;    }    /**     * Returns the number of generated clusters     * @return int numberOfGeneratedClusters     */    public int getNumberOfGeneratedClusters() {        return numberOfGeneratedClusters;    }    /**     * Returns the elapsed-time     * @return String elapsedTime     */    public String getElapsedTime() {        return elapsedTime + " sec";    }    // *****************************************************************************************************************    // inner classes    // *****************************************************************************************************************}

⌨️ 快捷键说明

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