dendrite.java
来自「用java实现的神经网络bp的核心算法」· Java 代码 · 共 44 行
JAVA
44 行
/*
* 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 + =
减小字号Ctrl + -
显示快捷键?