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

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

?? subspaceclusterdefinition.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. *//* * SubspaceClusterDefinition.java * Copyright (C) 2005 University of Waikato, Hamilton, New Zealand * */package weka.datagenerators.clusterers;import weka.core.Option;import weka.core.Range;import weka.core.SelectedTag;import weka.core.Utils;import weka.datagenerators.ClusterDefinition;import weka.datagenerators.ClusterGenerator;import java.util.Enumeration;import java.util.Random;import java.util.StringTokenizer;import java.util.Vector;/** <!-- globalinfo-start --> * A single cluster for the SubspaceCluster datagenerator * <p/> <!-- globalinfo-end --> * <!-- options-start --> * Valid options are: <p/> *  * <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 $ * @see SubspaceCluster */public class SubspaceClusterDefinition   extends ClusterDefinition {  /** for serialization */  static final long serialVersionUID = 3135678125044007231L;    /** cluster type */  protected int m_clustertype;  /** cluster subtypes */  protected int m_clustersubtype;  /** number of attributes the cluster is defined for */  protected int m_numClusterAttributes;  /** number of instances for this cluster */  protected int m_numInstances;  /** minimal number of instances for this cluster */  protected int m_MinInstNum;  /** maximal number of instances for this cluster */  protected int m_MaxInstNum;  /** range of atttributes */  protected Range m_AttrIndexRange;  /** attributes of this cluster */  protected boolean[] m_attributes;  /** global indices of the attributes of the cluster */  protected int[] m_attrIndices;  /** ranges of each attribute (min); not used if gaussian */  protected double[] m_minValue;  /** ranges of each attribute (max); not used if gaussian */  protected double[] m_maxValue;  /** mean ; only used if gaussian */  protected double[] m_meanValue;    /** standarddev; only used if gaussian */  protected double[] m_stddevValue;  /**   * initializes the cluster, without a parent cluster (necessary for GOE)   */  public SubspaceClusterDefinition() {    super();  }  /**   * initializes the cluster with default values   *   * @param parent    the datagenerator this cluster belongs to   */  public SubspaceClusterDefinition(ClusterGenerator parent) {    super(parent);  }  /**   * sets the default values   *    * @throws Exception if setting of defaults fails   */  protected void setDefaults() throws Exception {    setClusterType(defaultClusterType());    setClusterSubType(defaultClusterSubType());    setMinInstNum(defaultMinInstNum());    setMaxInstNum(defaultMaxInstNum());    setAttrIndexRange(defaultAttrIndexRange());    m_numClusterAttributes = 1;    setValuesList(defaultValuesList());  }    /**   * 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 single cluster for the SubspaceCluster datagenerator";  }  /**   * Returns an enumeration describing the available options.   *   * @return an enumeration of all the available options   */  public Enumeration listOptions() {    Vector result = new Vector();    result.addElement(new Option(          "\tGenerates randomly distributed instances in the cluster.",          "A", 1, "-A <range>"));    result.addElement(new Option(          "\tGenerates uniformly distributed instances in the cluster.",          "U", 1, "-U <range>"));    result.addElement(new Option(          "\tGenerates gaussian distributed instances in the cluster.",          "G", 1, "-G <range>"));    result.addElement(new Option(          "\tThe attribute min/max (-A and -U) or mean/stddev (-G) for\n"          + "\tthe cluster.",          "D", 1, "-D <num>,<num>"));    result.addElement(new Option(          "\tThe range of number of instances per cluster (default "          + defaultMinInstNum() + ".." + defaultMaxInstNum() + ").",          "N", 1, "-N <num>..<num>"));    result.addElement(new Option(          "\tUses integer instead of continuous values (default continuous).",          "I", 0, "-I"));    return result.elements();  }  /**   * Parses a list of options for this object. <p/>   *   <!-- options-start -->   * Valid options are: <p/>   *    * <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;    String        fromToStr;    int           typeCount;    typeCount = 0;    fromToStr = "";    tmpStr = Utils.getOption('A', options);    if (tmpStr.length() != 0) {      fromToStr = tmpStr;      setClusterType(          new SelectedTag(            SubspaceCluster.UNIFORM_RANDOM, SubspaceCluster.TAGS_CLUSTERTYPE));      typeCount++;    }    tmpStr = Utils.getOption('U', options);    if (tmpStr.length() != 0) {      fromToStr = tmpStr;      setClusterType(          new SelectedTag(            SubspaceCluster.TOTAL_UNIFORM, SubspaceCluster.TAGS_CLUSTERTYPE));      typeCount++;    }    tmpStr = Utils.getOption('G', options);    if (tmpStr.length() != 0) {      fromToStr = tmpStr;      setClusterType(          new SelectedTag(            SubspaceCluster.GAUSSIAN, SubspaceCluster.TAGS_CLUSTERTYPE));      typeCount++;    }    // default is uniform/random    if (typeCount == 0)      setClusterType(          new SelectedTag(            SubspaceCluster.UNIFORM_RANDOM, SubspaceCluster.TAGS_CLUSTERTYPE));    else if (typeCount > 1)      throw new Exception("Only one cluster type can be specified!");    setAttrIndexRange(fromToStr);        tmpStr = Utils.getOption('D', options);    if (isGaussian()) {      if (tmpStr.length() != 0)        setMeanStddev(tmpStr);      else        setMeanStddev(defaultMeanStddev());    }    else {      if (tmpStr.length() != 0)        setValuesList(tmpStr);      else        setValuesList(defaultValuesList());    }    tmpStr = Utils.getOption('N', options);    if (tmpStr.length() != 0)      setInstNums(tmpStr);    else      setInstNums(defaultMinInstNum() + ".." + defaultMaxInstNum());    if (Utils.getFlag('I', options))      setClusterSubType(          new SelectedTag(            SubspaceCluster.INTEGER, SubspaceCluster.TAGS_CLUSTERSUBTYPE));    else      setClusterSubType(          new SelectedTag(            SubspaceCluster.CONTINUOUS, SubspaceCluster.TAGS_CLUSTERSUBTYPE));  }  /**   * Gets the current settings of the datagenerator BIRCHCluster.   *   * @return an array of strings suitable for passing to setOptions   */  public String[] getOptions() {    Vector        result;    result  = new Vector();    if (isRandom()) {      result.add("-A");      result.add("" + getAttrIndexRange());      result.add("-D");      result.add("" + getValuesList());    }    else if (isUniform()) {      result.add("-U");      result.add("" + getAttrIndexRange());      result.add("-D");      result.add("" + getValuesList());    }    else if (isGaussian()) {      result.add("-G");      result.add("" + getAttrIndexRange());      result.add("-D");      result.add("" + getMeanStddev());    }    result.add("-N");     result.add("" + getInstNums());    if (m_clustersubtype == SubspaceCluster.INTEGER)      result.add("-I");    return (String[]) result.toArray(new String[result.size()]);  }  /**   * Make a string from the attribues list.   *    * @return the attributes as string   */  public String attributesToString() {    StringBuffer text = new StringBuffer();    int j = 0;    for (int i = 0; i < m_attributes.length; i++) {      if (m_attributes[i]) {        if (isGaussian()) {          text.append(" Attribute: " + i);          text.append(" Mean: "+ m_meanValue[j]);          text.append(" StdDev: "+m_stddevValue[j]+"\n%");        }         else {          text.append(" Attribute: " + i);          text.append(" Range: "+ m_minValue[j]);          text.append(" - "+m_maxValue[j]+"\n%");        }        j++;      }    }    return text.toString();  }  /**   * Make a string from the cluster features.   *    * @return the cluster features as string   */  public String toString() {    StringBuffer text = new StringBuffer();    text.append("attributes " + attributesToString() + "\n");    text.append("number of instances " + getInstNums());     return text.toString();  }  /**   * sets the parent datagenerator this cluster belongs to   * @param parent      the parent datagenerator   */  public void setParent(SubspaceCluster parent) {    super.setParent(parent);    m_AttrIndexRange.setUpper(getParent().getNumAttributes());  }  /**   * returns the default attribute index range   *    * @return the default attribute index range   */  protected String defaultAttrIndexRange() {    return "1";  }  /**   * Sets which attributes are used in the cluster   * attributes among the selection will be discretized.   *   * @param rangeList a string representing the list of attributes. Since   * the string will typically come from a user, attributes are indexed from   * 1. <br/>   * eg: first-3,5,6-last   */  public void setAttrIndexRange(String rangeList) {    m_numClusterAttributes = 0;     if (m_AttrIndexRange == null)      m_AttrIndexRange = new Range();    m_AttrIndexRange.setRanges(rangeList);    if (getParent() != null) {      m_AttrIndexRange.setUpper(getParent().getNumAttributes());      m_attributes = new boolean [getParent().getNumAttributes()];      for (int i = 0; i < m_attributes.length; i++) {        if (m_AttrIndexRange.isInRange(i)) {          m_numClusterAttributes++;          m_attributes[i] = true;         }         else {          m_attributes[i] = false;         }      }      //store translation from attr in cluster to attr in whole dataset      m_attrIndices = new int[m_numClusterAttributes];      int clusterI = -1;      for (int i = 0; i < m_attributes.length; i++) {        if (m_AttrIndexRange.isInRange(i)) {          clusterI++;          m_attrIndices[clusterI] = i;        }      }    }  }  /**   * returns the attribute range(s).   *    * @return the attribute range(s).   */  public String getAttrIndexRange() {    return m_AttrIndexRange.getRanges();  }    /**   * Returns the tip text for this property   * @return tip text for this property suitable for   * displaying in the explorer/experimenter gui   */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久福利资源站| 99久久久国产精品| 1区2区3区国产精品| 91精品国产色综合久久久蜜香臀| 成人激情小说乱人伦| 天堂影院一区二区| 中文幕一区二区三区久久蜜桃| 欧美日韩在线三区| 成人av资源下载| 久久精品久久99精品久久| 国产精品久久久久9999吃药| 欧美另类videos死尸| 成人激情综合网站| 久久成人综合网| 性做久久久久久免费观看| 国产精品国产自产拍在线| 欧美一区二区三区免费观看视频| 色偷偷一区二区三区| 国产成人综合亚洲91猫咪| 日韩1区2区日韩1区2区| 亚洲综合色婷婷| 亚洲欧洲日韩一区二区三区| 精品国产青草久久久久福利| 欧美日韩不卡一区二区| 色香蕉久久蜜桃| 91尤物视频在线观看| 成人黄色在线看| 国产成人免费在线观看不卡| 久久99国产精品久久99果冻传媒| 中文字幕在线视频一区| 中文字幕精品一区| 中文字幕成人av| 久久精品免视看| 国产丝袜在线精品| 日本一区二区综合亚洲| 国产校园另类小说区| 国产亚洲欧美日韩俺去了| 久久夜色精品国产欧美乱极品| 欧美mv日韩mv国产网站| 日韩欧美精品三级| 精品久久久久久久久久久久包黑料 | 欧美日韩高清在线| 欧美在线观看一区二区| 欧美主播一区二区三区美女| 色综合久久66| 欧洲视频一区二区| 欧美高清性hdvideosex| 日韩限制级电影在线观看| 日韩欧美国产午夜精品| 久久免费精品国产久精品久久久久| 日韩精品一区二区三区视频| 亚洲精品一区二区精华| 国产女人水真多18毛片18精品视频 | 黄色日韩网站视频| 国产酒店精品激情| 成人av影视在线观看| 91在线免费看| 欧美日韩国产一级| 日韩精品中文字幕在线不卡尤物| 日韩欧美卡一卡二| 日本一区二区动态图| 亚洲欧美日韩一区二区三区在线观看 | 欧美一级二级三级蜜桃| 精品免费日韩av| 亚洲欧洲另类国产综合| 亚洲综合免费观看高清在线观看| 亚洲线精品一区二区三区| 日韩av一级片| 国产成人综合网| 欧美羞羞免费网站| 精品福利在线导航| 中文字幕一区av| 日韩影视精彩在线| 国产传媒一区在线| 欧洲国内综合视频| 日韩精品一区二区三区视频播放 | 久久精品国产秦先生| 成人午夜激情在线| 欧美高清性hdvideosex| 中文字幕欧美国产| 丝袜亚洲精品中文字幕一区| 国产精品2024| 欧美乱妇15p| 亚洲国产高清在线观看视频| 亚洲午夜影视影院在线观看| 国产精品亚洲一区二区三区在线| 色综合欧美在线视频区| 精品国产伦一区二区三区免费| 日本一二三不卡| 青青草国产成人av片免费| 99国产精品99久久久久久| 欧美一区二区精品在线| 亚洲色图另类专区| 色哦色哦哦色天天综合| 欧美电影免费观看高清完整版| 中文字幕一区二区三| 久久99国产精品久久99果冻传媒| 91久久免费观看| 国产日产欧产精品推荐色| 日韩国产高清影视| 91麻豆swag| 国产女人18毛片水真多成人如厕| 亚洲va在线va天堂| 色综合 综合色| 国产精品日产欧美久久久久| 另类欧美日韩国产在线| 欧美性猛交xxxx黑人交| 亚洲天堂2016| 国产99久久久国产精品免费看| 欧美男男青年gay1069videost| 亚洲天堂av一区| 成人黄色在线视频| 国产嫩草影院久久久久| 黑人巨大精品欧美一区| 7777女厕盗摄久久久| 一个色妞综合视频在线观看| 岛国精品在线观看| 精品蜜桃在线看| 另类小说图片综合网| 欧美日韩一区在线| 亚洲一区二区在线观看视频 | 亚洲综合一区二区| 99re热视频这里只精品| 中文在线免费一区三区高中清不卡| 激情五月激情综合网| 欧美一区二区三区系列电影| 污片在线观看一区二区| 欧美午夜电影一区| 亚洲国产精品一区二区久久 | 国产精品白丝在线| 成人综合在线观看| 国产精品久久久久影视| 成人一区在线看| 国产精品污网站| 成人97人人超碰人人99| 中国av一区二区三区| 不卡的电影网站| 18成人在线视频| 在线欧美一区二区| 亚洲bt欧美bt精品| 欧美一区二区在线不卡| 奇米影视一区二区三区小说| 欧美成人bangbros| 国内精品国产成人国产三级粉色 | 亚洲午夜日本在线观看| 精品国产乱码久久| 国产成a人亚洲| 日韩伦理电影网| 国产精一区二区三区| 欧美日韩国产三级| 亚洲不卡在线观看| 欧美一级午夜免费电影| 精品亚洲成a人在线观看| 国产亚洲短视频| 成人高清av在线| 亚洲免费观看视频| 欧美猛男超大videosgay| 免费成人在线观看| 国产欧美综合色| 一本色道久久综合狠狠躁的推荐 | 亚洲精品五月天| 欧美欧美欧美欧美首页| 久久99热国产| 综合色中文字幕| 欧美情侣在线播放| 国产一区二区影院| 亚洲猫色日本管| 欧美一区二区大片| 处破女av一区二区| 亚洲一区二三区| 久久欧美一区二区| 91论坛在线播放| 蜜桃av一区二区三区电影| 欧美激情一二三区| 欧美日韩在线免费视频| 国产在线乱码一区二区三区| 亚洲人成人一区二区在线观看| 欧美妇女性影城| 高清国产午夜精品久久久久久| 亚洲日本在线天堂| 日韩美女视频一区二区在线观看| 国产凹凸在线观看一区二区| 亚洲成av人**亚洲成av**| 国产亚洲欧美日韩日本| 欧美久久久一区| 成人高清视频在线| 久久综合综合久久综合| 亚洲欧洲一区二区三区| 日韩欧美成人一区二区| 色中色一区二区| 国产成人免费在线观看| 视频一区二区三区中文字幕| 日韩一区在线免费观看| 欧美成人精精品一区二区频| 在线视频综合导航| 成人美女视频在线看| 毛片一区二区三区| 亚洲一区二区精品久久av| 国产精品蜜臀在线观看| 欧美成人一区二区三区|