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

📄 dendrite.java

📁 用java实现的神经网络bp的核心算法
💻 JAVA
字号:
/*
 * Dendrite.java
 *
 * Created on 2007年11月15日, 上午2:07
 *
 */

package neuralNetwork;

/**
 * dendrities of neuron.
 * @author yuhui_bear
 */
public class Dendrite {
    public double weight , preDifWeight;
    public Neuron in ,out;
    /** Creates a new instance of Dendrite */
    public Dendrite() {
        weight=0;
        preDifWeight=0;
        in=null;
        out=null;
    }
     public Dendrite(double w ) {
        weight=w;
        preDifWeight=0;
        in=null;
        out=null;
    }
    public Dendrite(double w , Neuron inN){
        weight=0;
        preDifWeight=0;
        in=inN;
        out=null;
    }
    public String toString(){
        return "[" + out.getIDNumber()+"]W= "+weight;
    }
    public String str(){
        String st = Float.toString((float)weight);
        return st;
    }
}

⌨️ 快捷键说明

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