📄 dendrite.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 + -