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

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

?? subspacecluster.java

?? Weka
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* *    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. *//* *    SubspaceCluster.java *    Copyright (C) 2001 University of Waikato, Hamilton, New Zealand * */package weka.datagenerators.clusterers;import weka.core.Attribute;import weka.core.FastVector;import weka.core.Instance;import weka.core.Instances;import weka.core.Option;import weka.core.Range;import weka.core.Tag;import weka.core.Utils;import weka.datagenerators.ClusterDefinition;import weka.datagenerators.ClusterGenerator;import java.util.Enumeration;import java.util.Random;import java.util.Vector;/** <!-- globalinfo-start --> * A data generator that produces data points in hyperrectangular subspace clusters. * <p/> <!-- globalinfo-end --> * <!-- options-start --> * Valid options are: <p/> *  * <pre> -h *  Prints this help.</pre> *  * <pre> -o &lt;file&gt; *  The name of the output file, otherwise the generated data is *  printed to stdout.</pre> *  * <pre> -r &lt;name&gt; *  The name of the relation.</pre> *  * <pre> -d *  Whether to print debug informations.</pre> *  * <pre> -S *  The seed for random function (default 1)</pre> *  * <pre> -a &lt;num&gt; *  The number of attributes (default 1).</pre> *  * <pre> -c *  Class Flag, if set, the cluster is listed in extra attribute.</pre> *  * <pre> -b &lt;range&gt; *  The indices for boolean attributes.</pre> *  * <pre> -m &lt;range&gt; *  The indices for nominal attributes.</pre> *  * <pre> -P &lt;num&gt; *  The noise rate in percent (default 0.0). *  Can be between 0% and 30%. (Remark: The original  *  algorithm only allows noise up to 10%.)</pre> *  * <pre> -C &lt;cluster-definition&gt; *  A cluster definition of class 'SubspaceClusterDefinition' *  (definition needs to be quoted to be recognized as  *  a single argument).</pre> *  * <pre>  * Options specific to weka.datagenerators.clusterers.SubspaceClusterDefinition: * </pre> *  * <pre> -A &lt;range&gt; *  Generates randomly distributed instances in the cluster.</pre> *  * <pre> -U &lt;range&gt; *  Generates uniformly distributed instances in the cluster.</pre> *  * <pre> -G &lt;range&gt; *  Generates gaussian distributed instances in the cluster.</pre> *  * <pre> -D &lt;num&gt;,&lt;num&gt; *  The attribute min/max (-A and -U) or mean/stddev (-G) for *  the cluster.</pre> *  * <pre> -N &lt;num&gt;..&lt;num&gt; *  The range of number of instances per cluster (default 1..50).</pre> *  * <pre> -I *  Uses integer instead of continuous values (default continuous).</pre> *  <!-- options-end --> * * @author Gabi Schmidberger (gabi@cs.waikato.ac.nz) * @author  FracPete (fracpete at waikato dot ac dot nz) * @version $Revision: 1.4 $  */public class SubspaceCluster   extends ClusterGenerator {  /** for serialization */  static final long serialVersionUID = -3454999858505621128L;    /** noise rate in percent (option P,  between 0 and 30)*/   protected double m_NoiseRate;  /** cluster list */  protected ClusterDefinition[] m_Clusters;  /** if nominal, store number of values */  protected int[] m_numValues;  /** store global min values */  protected double[] m_globalMinValue;  /** store global max values */  protected double[] m_globalMaxValue;  /** cluster type: uniform/random */  public static final int UNIFORM_RANDOM = 0;    /** cluster type: total uniform */  public static final int TOTAL_UNIFORM = 1;  /** cluster type: gaussian */  public static final int GAUSSIAN = 2;  /** the tags for the cluster types */  public static final Tag[] TAGS_CLUSTERTYPE = {    new Tag(UNIFORM_RANDOM, "uniform/random"),    new Tag(TOTAL_UNIFORM,  "total uniform"),    new Tag(GAUSSIAN,       "gaussian")  };  /** cluster subtype: continuous */  public static final int CONTINUOUS = 0;  /** cluster subtype: integer */  public static final int INTEGER = 1;  /** the tags for the cluster types */  public static final Tag[] TAGS_CLUSTERSUBTYPE = {    new Tag(CONTINUOUS, "continuous"),    new Tag(INTEGER,    "integer")  };  /**   * initializes the generator, sets the number of clusters to 0, since user   * has to specify them explicitly   */  public SubspaceCluster() {    super();    setNoiseRate(defaultNoiseRate());  }  /**   * Returns a string describing this data generator.   *   * @return a description of the data generator suitable for   * displaying in the explorer/experimenter gui   */  public String globalInfo() {    return "A data generator that produces data points in "      + "hyperrectangular subspace clusters.";  }  /**   * Returns an enumeration describing the available options.   *   * @return an enumeration of all the available options   */  public Enumeration listOptions() {    Vector result = enumToVector(super.listOptions());    result.addElement(new Option(          "\tThe noise rate in percent (default "           + defaultNoiseRate() + ").\n"          + "\tCan be between 0% and 30%. (Remark: The original \n"          + "\talgorithm only allows noise up to 10%.)",          "P", 1, "-P <num>"));    result.addElement(new Option(          "\tA cluster definition of class '" 	  + SubspaceClusterDefinition.class.getName().replaceAll(".*\\.", "") + "'\n"	  + "\t(definition needs to be quoted to be recognized as \n"	  + "\ta single argument).",          "C", 1, "-C <cluster-definition>"));    result.addElement(new Option(	      "", "", 0, 	      "\nOptions specific to " 	      + SubspaceClusterDefinition.class.getName() + ":"));    result.addAll(        enumToVector(new SubspaceClusterDefinition(this).listOptions()));    return result.elements();  }  /**   * Parses a list of options for this object. <p/>   *   <!-- options-start -->   * Valid options are: <p/>   *    * <pre> -h   *  Prints this help.</pre>   *    * <pre> -o &lt;file&gt;   *  The name of the output file, otherwise the generated data is   *  printed to stdout.</pre>   *    * <pre> -r &lt;name&gt;   *  The name of the relation.</pre>   *    * <pre> -d   *  Whether to print debug informations.</pre>   *    * <pre> -S   *  The seed for random function (default 1)</pre>   *    * <pre> -a &lt;num&gt;   *  The number of attributes (default 1).</pre>   *    * <pre> -c   *  Class Flag, if set, the cluster is listed in extra attribute.</pre>   *    * <pre> -b &lt;range&gt;   *  The indices for boolean attributes.</pre>   *    * <pre> -m &lt;range&gt;   *  The indices for nominal attributes.</pre>   *    * <pre> -P &lt;num&gt;   *  The noise rate in percent (default 0.0).   *  Can be between 0% and 30%. (Remark: The original    *  algorithm only allows noise up to 10%.)</pre>   *    * <pre> -C &lt;cluster-definition&gt;   *  A cluster definition of class 'SubspaceClusterDefinition'   *  (definition needs to be quoted to be recognized as    *  a single argument).</pre>   *    * <pre>    * Options specific to weka.datagenerators.clusterers.SubspaceClusterDefinition:   * </pre>   *    * <pre> -A &lt;range&gt;   *  Generates randomly distributed instances in the cluster.</pre>   *    * <pre> -U &lt;range&gt;   *  Generates uniformly distributed instances in the cluster.</pre>   *    * <pre> -G &lt;range&gt;   *  Generates gaussian distributed instances in the cluster.</pre>   *    * <pre> -D &lt;num&gt;,&lt;num&gt;   *  The attribute min/max (-A and -U) or mean/stddev (-G) for   *  the cluster.</pre>   *    * <pre> -N &lt;num&gt;..&lt;num&gt;   *  The range of number of instances per cluster (default 1..50).</pre>   *    * <pre> -I   *  Uses integer instead of continuous values (default continuous).</pre>   *    <!-- options-end -->   *   * @param options the list of options as an array of strings   * @throws Exception if an option is not supported   */  public void setOptions(String[] options) throws Exception {    String                      tmpStr;    SubspaceClusterDefinition   cl;    Vector                      list;    int                         clCount;    super.setOptions(options);    m_numValues = new int[getNumAttributes()];    // numValues might be changed by a cluster definition    // (only relevant for nominal data)    for (int i = 0; i < getNumAttributes(); i++)      m_numValues[i] = 1;    tmpStr = Utils.getOption('P', options);    if (tmpStr.length() != 0)      setNoiseRate(Double.parseDouble(tmpStr));    else      setNoiseRate(defaultNoiseRate());    // cluster definitions    list = new Vector();        clCount = 0;    do {      tmpStr = Utils.getOption('C', options);      if (tmpStr.length() != 0) {        clCount++;        cl = new SubspaceClusterDefinition(this);        cl.setOptions(Utils.splitOptions(tmpStr));        list.add(cl);      }    }    while (tmpStr.length() != 0);    m_Clusters = (ClusterDefinition[])                     list.toArray(new ClusterDefinition[list.size()]);    // in case no cluster definition was provided, make sure that there's at    // least one definition present -> see getClusters()    getClusters();  }  /**   * Gets the current settings of the datagenerator.   *   * @return an array of strings suitable for passing to setOptions   */  public String[] getOptions() {    Vector        result;    String[]      options;    int           i;    result  = new Vector();    options = super.getOptions();    for (i = 0; i < options.length; i++)      result.add(options[i]);    result.add("-P");     result.add("" + getNoiseRate());    for (i = 0; i < getClusters().length; i++)  {      result.add("-C");      result.add(Utils.joinOptions(getClusters()[i].getOptions()));    }    return (String[]) result.toArray(new String[result.size()]);  }  /**   * returns the current cluster definitions, if necessary initializes them   *    * @return the current cluster definitions   */  protected ClusterDefinition[] getClusters() {    if ( (m_Clusters == null) || (m_Clusters.length == 0) ) {      if (m_Clusters != null)        System.out.println("NOTE: at least 1 cluster definition is necessary, "             + "created default one.");      m_Clusters = new ClusterDefinition[]{new SubspaceClusterDefinition(this)};    }    return m_Clusters;  }  /**   * returns the default number of attributes   *    * @return the default number of attributes   */  protected int defaultNumAttributes() {    return 1;  }  /**   * Sets the number of attributes the dataset should have.   * @param numAttributes the new number of attributes   */  public void setNumAttributes(int numAttributes) {    super.setNumAttributes(numAttributes);    m_numValues = new int[getNumAttributes()];  }    /**   * Returns the tip text for this property   *    * @return tip text for this property suitable for   *         displaying in the explorer/experimenter gui   */  public String numAttributesTipText() {    return "The number of attributes the generated data will contain (Note: they must be covered by the cluster definitions!)";  }  /**   * returns the default noise rate   *    * @return the default noise rate   */  protected double defaultNoiseRate() {    return 0.0;  }  /**   * Gets the percentage of noise set.   *   * @return the percentage of noise set   */  public double getNoiseRate() {     return m_NoiseRate;   }  /**   * Sets the percentage of noise set.   *   * @param newNoiseRate new percentage of noise    */  public void setNoiseRate(double newNoiseRate) {    m_NoiseRate = newNoiseRate;  }  /**   * Returns the tip text for this property   *    * @return tip text for this property suitable for   *         displaying in the explorer/experimenter gui   */  public String noiseRateTipText() {    return "The noise rate to use.";  }  /**   * returns the currently set clusters   *    * @return the currently set clusters   */  public ClusterDefinition[] getClusterDefinitions() {    return getClusters();  }  /**   * sets the clusters to use   *    * @param value the clusters do use   * @throws Exception if clusters are not the correct class   */  public void setClusterDefinitions(ClusterDefinition[] value)     throws Exception {    String      indexStr;        indexStr   = "";    m_Clusters = value;    for (int i = 0; i < getClusters().length; i++) {      if (!(getClusters()[i] instanceof SubspaceClusterDefinition)) {        if (indexStr.length() != 0)          indexStr += ",";        indexStr += "" + (i+1);      }      getClusters()[i].setParent(this);      getClusters()[i].setOptions(getClusters()[i].getOptions()); // for initializing!    }    // any wrong classes encountered?    if (indexStr.length() != 0)      throw new Exception("These cluster definitions are not '"           + SubspaceClusterDefinition.class.getName() + "': " + indexStr);  }  /**   * Returns the tip text for this property   *    * @return tip text for this property suitable for   *         displaying in the explorer/experimenter gui   */  public String clusterDefinitionsTipText() {    return "The clusters to use.";  }  /**   * Checks, whether all attributes are covered by cluster definitions and    * returns TRUE in that case.   *    * @return whether all attributes are covered   */  protected boolean checkCoverage() {    int         i;    int         n;    int[]       count;    Range       r;    String      attrIndex;    SubspaceClusterDefinition  cl;    

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
麻豆91在线观看| 亚洲天堂中文字幕| 麻豆精品视频在线观看视频| 在线电影国产精品| 久草这里只有精品视频| 精品国产一区二区三区av性色| 国产一区二区影院| 国产精品家庭影院| 欧美日韩久久久| 久久精品国产在热久久| 欧美国产综合色视频| 欧美曰成人黄网| 久久精品免费看| 国产精品理伦片| 欧美日韩一本到| 国产一区二区三区蝌蚪| 亚洲人成7777| 欧美xxxxxxxx| 91免费观看国产| 视频一区二区中文字幕| 337p粉嫩大胆色噜噜噜噜亚洲 | 欧美精品久久久久久久多人混战 | 日韩一区二区电影在线| 国产成人无遮挡在线视频| 亚洲欧美电影一区二区| 51精品国自产在线| 成人黄色网址在线观看| 亚洲电影中文字幕在线观看| 精品成人一区二区| 不卡的av电影| 日韩综合小视频| 国产精品久久久久7777按摩| 欧美日韩aaa| 成人激情视频网站| 欧美aaa在线| 综合久久给合久久狠狠狠97色| 欧美日本在线观看| 99精品偷自拍| 奇米影视一区二区三区| 一色桃子久久精品亚洲| 日韩天堂在线观看| 欧洲另类一二三四区| 懂色av一区二区三区蜜臀| 日本不卡一区二区三区| 亚洲免费在线观看视频| 精品99一区二区| 欧美日本一区二区三区| 色综合久久六月婷婷中文字幕| 国产精品综合网| 久久激情五月激情| 日韩中文字幕麻豆| 亚洲影院久久精品| 亚洲精品亚洲人成人网 | 91精品国产美女浴室洗澡无遮挡| 97se亚洲国产综合在线| 国产91精品一区二区麻豆亚洲| 日韩av电影一区| 亚洲成人免费电影| 一区二区三区欧美日| 最新高清无码专区| 国产欧美精品一区aⅴ影院 | 中文av一区二区| 国产视频亚洲色图| 精品国产sm最大网站免费看| 91精品国产一区二区三区蜜臀| 欧美日韩国产三级| 欧美曰成人黄网| 欧美色电影在线| 欧美老女人在线| 8x福利精品第一导航| 日韩一区二区三区电影在线观看| 777欧美精品| 91精品国产综合久久香蕉麻豆 | 精品国产精品一区二区夜夜嗨| 欧美日韩黄色一区二区| 欧美在线免费观看亚洲| 91久久一区二区| 欧美亚洲禁片免费| 欧美老肥妇做.爰bbww视频| 欧美一区二区视频在线观看 | 欧美日韩亚洲国产综合| 欧美三级日韩在线| 4438x亚洲最大成人网| 欧美三级在线视频| 6080日韩午夜伦伦午夜伦| 777亚洲妇女| 精品国产一区二区精华| 中文字幕不卡三区| 曰韩精品一区二区| 日本亚洲免费观看| 狠狠久久亚洲欧美| 成人午夜在线免费| 在线免费观看日本欧美| 欧美午夜免费电影| 日韩欧美国产综合在线一区二区三区| 日韩亚洲欧美在线| 久久精品一区二区三区不卡| 中文字幕中文字幕在线一区 | 日韩免费一区二区| 久久精品一区四区| 一区二区三区免费网站| 视频一区欧美精品| 国产91在线看| 在线欧美日韩国产| 精品福利一二区| 亚洲欧美日韩在线| 久久精品国产久精国产爱| 国产91精品入口| 欧美大片拔萝卜| 久久香蕉国产线看观看99| 国产精品二三区| 欧美aⅴ一区二区三区视频| 国产盗摄精品一区二区三区在线| 欧美在线影院一区二区| 国产亚洲精品aa午夜观看| 亚洲色欲色欲www| 久久精品国产一区二区| 色欧美片视频在线观看在线视频| 宅男噜噜噜66一区二区66| 欧美极品aⅴ影院| 日韩av电影免费观看高清完整版| 成人激情黄色小说| 欧美一区二区三区视频| 亚洲免费观看高清在线观看| 国产一区二区免费在线| 欧美日本视频在线| 中文字幕一区免费在线观看| 久久成人久久鬼色| 欧美午夜精品理论片a级按摩| 国产亚洲午夜高清国产拍精品| 亚洲国产精品久久一线不卡| 成人小视频在线观看| 日韩免费视频线观看| 亚洲成a天堂v人片| 99国产精品久| 国产欧美日韩综合精品一区二区| 男男gaygay亚洲| 欧美私人免费视频| 1区2区3区欧美| 国产91精品一区二区麻豆网站| 欧美成人猛片aaaaaaa| 午夜精品福利在线| 91福利视频在线| 国产精品网曝门| 国产在线精品一区二区三区不卡| 欧美浪妇xxxx高跟鞋交| 中文字幕亚洲在| 不卡一区二区三区四区| 国产色综合一区| 国内精品在线播放| www国产成人| 国产一区91精品张津瑜| xnxx国产精品| 久久电影网电视剧免费观看| 欧美成人综合网站| 日本成人在线网站| 欧美一区二区三区在| 天堂资源在线中文精品| 欧美色偷偷大香| 亚洲综合久久av| 精品视频全国免费看| 亚洲精品一卡二卡| 欧美影院精品一区| 午夜久久久久久久久| 在线电影欧美成精品| 另类专区欧美蜜桃臀第一页| 精品久久一区二区| 国产一区二区三区免费播放| 久久精品日韩一区二区三区| 国产经典欧美精品| 欧美国产一区二区| 99精品欧美一区二区三区综合在线| 国产精品乱人伦中文| 一本大道av伊人久久综合| 亚洲人成7777| 欧美日韩二区三区| 精品一区二区三区在线观看国产| 久久免费精品国产久精品久久久久| 国产寡妇亲子伦一区二区| 国产精品久久久久7777按摩| 色综合久久六月婷婷中文字幕| 亚洲成人精品在线观看| 日韩丝袜美女视频| 国产成人精品三级麻豆| 中文字幕在线播放不卡一区| 欧美无人高清视频在线观看| 午夜精品福利一区二区蜜股av | 日韩激情av在线| 精品国产免费人成在线观看| 国产福利91精品一区| 亚洲欧美色一区| 日韩片之四级片| 国产99一区视频免费| 亚洲影院久久精品| 欧美成人激情免费网| 99视频国产精品| 青娱乐精品视频在线| 欧美激情艳妇裸体舞| 欧美精品三级日韩久久| 国产成人在线观看免费网站|