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

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

?? neuralconnection.java

?? 一個(gè)小型的數(shù)據(jù)挖掘器應(yīng)用軟件,綜合數(shù)據(jù)挖掘的各種功能
?? JAVA
?? 第 1 頁 / 共 2 頁
字號(hào):
/* *    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. *//* *    NeuralConnection.java *    Copyright (C) 2000 Malcolm Ware */package weka.classifiers.functions.neural;import java.awt.Graphics;import java.awt.Color;import java.io.*;/**  * Abstract unit in a NeuralNetwork. * * @author Malcolm Ware (mfw4@cs.waikato.ac.nz) * @version $Revision: 1.4 $ */public abstract class NeuralConnection implements Serializable {  //bitwise flags for the types of unit.  /** This unit is not connected to any others. */  public static final int UNCONNECTED = 0;    /** This unit is a pure input unit. */  public static final int PURE_INPUT = 1;    /** This unit is a pure output unit. */  public static final int PURE_OUTPUT = 2;    /** This unit is an input unit. */  public static final int INPUT = 4;    /** This unit is an output unit. */  public static final int OUTPUT = 8;    /** This flag is set once the unit has a connection. */  public static final int CONNECTED = 16;  /////The difference between pure and not is that pure is used to feed   /////the neural network the attribute values and the errors on the outputs  /////Beyond that they do no calculations, and have certain restrictions  /////on the connections they can make.  /** The list of inputs to this unit. */  protected NeuralConnection[] m_inputList;  /** The list of outputs from this unit. */  protected NeuralConnection[] m_outputList;  /** The numbering for the connections at the other end of the input lines. */  protected int[] m_inputNums;    /** The numbering for the connections at the other end of the out lines. */  protected int[] m_outputNums;  /** The number of inputs. */  protected int m_numInputs;  /** The number of outputs. */  protected int m_numOutputs;  /** The output value for this unit, NaN if not calculated. */  protected double m_unitValue;  /** The error value for this unit, NaN if not calculated. */  protected double m_unitError;    /** True if the weights have already been updated. */  protected boolean m_weightsUpdated;    /** The string that uniquely (provided naming is done properly) identifies   * this unit. */  protected String m_id;  /** The type of unit this is. */  protected int m_type;  /** The x coord of this unit purely for displaying purposes. */  protected double m_x;    /** The y coord of this unit purely for displaying purposes. */  protected double m_y;        /**   * Constructs The unit with the basic connection information prepared for   * use.    */  public NeuralConnection(String id) {        m_id = id;    m_inputList = new NeuralConnection[0];    m_outputList = new NeuralConnection[0];    m_inputNums = new int[0];    m_outputNums = new int[0];    m_numInputs = 0;    m_numOutputs = 0;    m_unitValue = Double.NaN;    m_unitError = Double.NaN;    m_weightsUpdated = false;    m_x = 0;    m_y = 0;    m_type = UNCONNECTED;  }      /**   * @return The identity string of this unit.   */  public String getId() {    return m_id;  }  /**   * @return The type of this unit.   */  public int getType() {    return m_type;  }  /**   * @param t The new type of this unit.   */  public void setType(int t) {    m_type = t;  }  /**   * Call this to reset the unit for another run.   * It is expected by that this unit will call the reset functions of all    * input units to it. It is also expected that this will not be done   * if the unit has already been reset (or atleast appears to be).   */  public abstract void reset();  /**   * Call this to get the output value of this unit.    * @param calculate True if the value should be calculated if it hasn't been   * already.   * @return The output value, or NaN, if the value has not been calculated.   */  public abstract double outputValue(boolean calculate);  /**   * Call this to get the error value of this unit.   * @param calculate True if the value should be calculated if it hasn't been   * already.   * @return The error value, or NaN, if the value has not been calculated.   */  public abstract double errorValue(boolean calculate);  /**   * Call this to get the weight value on a particular connection.   * @param n The connection number to get the weight for, -1 if The threshold   * weight should be returned.   * @return This function will default to return 1. If overridden, it should   * return the value for the specified connection or if -1 then it should    * return the threshold value. If no value exists for the specified    * connection, NaN will be returned.   */  public double weightValue(int n) {    return 1;  }  /**   * Call this function to update the weight values at this unit.   * After the weights have been updated at this unit, All the   * input connections will then be called from this to have their   * weights updated.   * @param l The learning Rate to use.   * @param m The momentum to use.   */  public void updateWeights(double l, double m) {        //the action the subclasses should perform is upto them     //but if they coverride they should make a call to this to    //call the method for all their inputs.        if (!m_weightsUpdated) {      for (int noa = 0; noa < m_numInputs; noa++) {	m_inputList[noa].updateWeights(l, m);      }      m_weightsUpdated = true;    }      }  /**   * Use this to get easy access to the inputs.   * It is not advised to change the entries in this list   * (use the connecting and disconnecting functions to do that)   * @return The inputs list.   */  public NeuralConnection[] getInputs() {    return m_inputList;  }  /**   * Use this to get easy access to the outputs.   * It is not advised to change the entries in this list   * (use the connecting and disconnecting functions to do that)   * @return The outputs list.   */  public NeuralConnection[] getOutputs() {    return m_outputList;  }  /**   * Use this to get easy access to the input numbers.   * It is not advised to change the entries in this list   * (use the connecting and disconnecting functions to do that)   * @return The input nums list.   */  public int[] getInputNums() {    return m_inputNums;  }  /**   * Use this to get easy access to the output numbers.   * It is not advised to change the entries in this list   * (use the connecting and disconnecting functions to do that)   * @return The outputs list.   */  public int[] getOutputNums() {    return m_outputNums;  }  /**   * @return the x coord.   */  public double getX() {    return m_x;  }    /**   * @return the y coord.   */  public double getY() {    return m_y;  }    /**   * @param x The new value for it's x pos.   */  public void setX(double x) {    m_x = x;  }    /**   * @param y The new value for it's y pos.   */  public void setY(double y) {    m_y = y;  }      /**   * Call this function to determine if the point at x,y is on the unit.   * @param g The graphics context for font size info.   * @param x The x coord.   * @param y The y coord.   * @param w The width of the display.   * @param h The height of the display.   * @return True if the point is on the unit, false otherwise.   */  public boolean onUnit(Graphics g, int x, int y, int w, int h) {    int m = (int)(m_x * w);    int c = (int)(m_y * h);    if (x > m + 10 || x < m - 10 || y > c + 10 || y < c - 10) {      return false;    }    return true;  }    /**   * Call this function to draw the node.   * @param g The graphics context.   * @param w The width of the drawing area.   * @param h The height of the drawing area.   */  public void drawNode(Graphics g, int w, int h) {        if ((m_type & OUTPUT) == OUTPUT) {      g.setColor(Color.orange);    }    else {      g.setColor(Color.red);    }    g.fillOval((int)(m_x * w) - 9, (int)(m_y * h) - 9, 19, 19);    g.setColor(Color.gray);    g.fillOval((int)(m_x * w) - 5, (int)(m_y * h) - 5, 11, 11);  }  /**   * Call this function to draw the node highlighted.   * @param g The graphics context.   * @param w The width of the drawing area.   * @param h The height of the drawing area.   */  public void drawHighlight(Graphics g, int w, int h) {       drawNode(g, w, h);    g.setColor(Color.yellow);    g.fillOval((int)(m_x * w) - 5, (int)(m_y * h) - 5, 11, 11);  }  /**    * Call this function to draw the nodes input connections.   * @param g The graphics context.   * @param w The width of the drawing area.   * @param h The height of the drawing area.   */  public void drawInputLines(Graphics g, int w, int h) {    g.setColor(Color.black);        int px = (int)(m_x * w);    int py = (int)(m_y * h);    for (int noa = 0; noa < m_numInputs; noa++) {      g.drawLine((int)(m_inputList[noa].getX() * w)		 , (int)(m_inputList[noa].getY() * h)		 , px, py);    }  }  /**   * Call this function to draw the nodes output connections.   * @param g The graphics context.   * @param w The width of the drawing area.   * @param h The height of the drawing area.   */  public void drawOutputLines(Graphics g, int w, int h) {        g.setColor(Color.black);

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
免费成人在线视频观看| 一区二区三区在线观看欧美| 国产综合色视频| 精品乱码亚洲一区二区不卡| 久久精品国产免费看久久精品| 欧美一区二区大片| 国内成人免费视频| 久久久久久一级片| 91香蕉视频黄| 日韩国产欧美一区二区三区| 日韩精品一区二区在线观看| 国产成人免费在线| 亚洲精品v日韩精品| 欧美日韩国产高清一区二区三区 | 国产精品一区二区你懂的| 久久久久国产精品麻豆ai换脸| 国产成人在线视频播放| 玉米视频成人免费看| 欧美一级欧美三级| 99久久夜色精品国产网站| 亚洲午夜在线电影| 久久久不卡网国产精品二区| 99精品视频一区| 日韩和的一区二区| 亚洲国产精品高清| 欧美日韩1234| 国产成人精品亚洲日本在线桃色 | 日韩中文字幕麻豆| 国产人成一区二区三区影院| 91久久免费观看| 极品瑜伽女神91| 亚洲男帅同性gay1069| 欧美哺乳videos| 欧美性大战xxxxx久久久| 国产精品一区在线观看乱码| 亚洲成人av电影| 国产精品美女久久久久久2018| 欧美日韩一区二区在线观看| 国产91精品精华液一区二区三区| 亚洲一区在线观看网站| 欧美经典一区二区| 欧美一区二区三区在线看| 色哟哟精品一区| 国产精品 欧美精品| 日韩—二三区免费观看av| 亚洲欧美日韩综合aⅴ视频| 久久综合资源网| 91麻豆精品国产无毒不卡在线观看| 成人免费视频视频在线观看免费| 美女www一区二区| 亚洲一二三区视频在线观看| 国产精品欧美久久久久无广告| 日韩天堂在线观看| 欧美高清www午色夜在线视频| 99国产精品视频免费观看| 国产成人免费视频网站| 国内精品伊人久久久久影院对白| 午夜天堂影视香蕉久久| 亚洲精品午夜久久久| 国产精品青草综合久久久久99| 久久久久久毛片| 精品国产伦理网| 欧美一级理论片| 91精品久久久久久蜜臀| 欧美在线一二三四区| 91丨porny丨最新| 99久久久国产精品免费蜜臀| 成人午夜在线播放| 国产成人精品三级| 国产高清精品网站| 国产69精品久久久久777| 国产一区二区不卡| 国产精品中文字幕一区二区三区| 奇米一区二区三区| 狂野欧美性猛交blacked| 日本一道高清亚洲日美韩| 亚洲国产一区视频| 亚洲国产日韩a在线播放| 亚洲无线码一区二区三区| 亚洲电影一级片| 天天影视色香欲综合网老头| 日韩电影在线免费看| 日本免费在线视频不卡一不卡二| 奇米色一区二区三区四区| 蜜桃av一区二区三区电影| 麻豆国产欧美日韩综合精品二区| 日韩va欧美va亚洲va久久| 美女在线一区二区| 激情综合色综合久久综合| 黑人精品欧美一区二区蜜桃| 国产91在线看| 色av一区二区| 日韩午夜精品电影| 国产日韩高清在线| 亚洲另类春色国产| 三级精品在线观看| 狠狠v欧美v日韩v亚洲ⅴ| 豆国产96在线|亚洲| 色88888久久久久久影院按摩| 欧美日韩精品一区二区三区 | 久久久久久毛片| 中文字幕在线免费不卡| 亚洲高清不卡在线| 激情国产一区二区 | 国产在线精品视频| 成人动漫av在线| 欧美日韩极品在线观看一区| 欧美岛国在线观看| 亚洲欧洲精品一区二区三区| 一区二区三区欧美视频| 奇米一区二区三区| 不卡影院免费观看| 欧美一区二区网站| 中文字幕高清不卡| 日韩精品国产欧美| 成人涩涩免费视频| 7777精品伊人久久久大香线蕉完整版 | 精品在线一区二区| 91亚洲永久精品| 欧美成人r级一区二区三区| 国产三级精品三级在线专区| 亚洲一区免费在线观看| 韩国视频一区二区| 91黄视频在线观看| wwww国产精品欧美| 亚洲国产精品一区二区www在线| 精品一区二区三区久久久| 色婷婷综合久久久久中文一区二区| 7777精品伊人久久久大香线蕉的| 中文成人av在线| 蜜桃视频第一区免费观看| 色综合久久久久久久久久久| 日韩你懂的在线播放| 一区二区在线观看av| 国产在线精品免费| 777xxx欧美| 亚洲影视资源网| 成人网在线免费视频| 欧美精品一区二区三区蜜臀| 亚洲成人tv网| 日本韩国欧美在线| 中文字幕国产一区二区| 激情综合五月天| 欧美一级xxx| 亚洲成人黄色影院| 91小视频免费观看| 国产精品美女久久久久久久网站| 蜜桃一区二区三区在线观看| 欧美自拍偷拍午夜视频| 亚洲视频精选在线| 99re在线视频这里只有精品| 国产视频一区不卡| 国产一区二区在线视频| 日韩一级黄色大片| 日韩电影在线免费| 欧美精品在线观看一区二区| 亚洲在线视频免费观看| 99久久久国产精品免费蜜臀| 国产精品你懂的| 99久久伊人精品| 亚洲女人****多毛耸耸8| av一区二区三区黑人| 国产精品国产自产拍高清av| 国产宾馆实践打屁股91| 国产欧美一区二区三区沐欲 | 成人动漫一区二区| 18成人在线视频| 一道本成人在线| 一区二区三区在线视频免费| 91一区二区三区在线播放| 又紧又大又爽精品一区二区| 91黄色在线观看| 性做久久久久久| 91精品国产高清一区二区三区蜜臀 | 日日夜夜一区二区| 在线电影一区二区三区| 日韩和欧美的一区| 精品嫩草影院久久| 国产麻豆9l精品三级站| 欧美韩国日本不卡| 91免费版pro下载短视频| 亚洲欧美日韩电影| 欧美日韩国产另类一区| 毛片基地黄久久久久久天堂| 精品久久一区二区| 成人综合日日夜夜| 亚洲黄色av一区| 91精品国产综合久久精品麻豆| 日韩高清不卡一区二区三区| 精品免费日韩av| av在线播放一区二区三区| 亚洲国产日韩av| 久久综合国产精品| 99re在线视频这里只有精品| 午夜国产不卡在线观看视频| 精品久久久久久久久久久院品网 | 欧美激情一区二区| 欧美中文字幕一二三区视频| 麻豆成人av在线| 日韩一区在线免费观看|