|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.htwdd.rosenkoenig.neuro.net.Synapse
public class Synapse
This class is used to interconnect layers of neurons. It contains all connections between the two layers to be connected to improve the performance of the nets.
| Field Summary | |
|---|---|
private double[][] |
deltaW
The weight change for the connection. |
private double[][] |
deltaWTmp
The temporary weight change. |
private Layer |
inputLayer
The input layer of the Synapse. |
private InnerLayer |
outputLayer
The output layer of the Synapse. |
private double[][] |
weights
This two dimensional array contains the weights for every connection between all neurons of the input layer and all neurons of the output layer. |
| Constructor Summary | |
|---|---|
Synapse()
Default ctor. |
|
Synapse(Layer inputLayer,
InnerLayer outputLayer)
Create a Synapse using inputLayer and outputLayer. |
|
| Method Summary | |
|---|---|
double[][] |
getDeltaW()
Getter of the property deltaW |
double[][] |
getDeltaWTmp()
Getter of the property deltaWTmp |
Layer |
getInputLayer()
Getter of the property inputLayer |
InnerLayer |
getOutputLayer()
Getter of the property outputLayer |
double[][] |
getWeights()
Getter of the property weights |
void |
initForTraining()
Initialize the Synapse for training. |
void |
setDeltaW(double[][] deltaW)
Setter of the property deltaW |
void |
setDeltaWTmp(double[][] deltaWTmp)
Setter of the property deltaWTmp |
void |
setInputLayer(Layer inputLayer)
Setter of the property inputLayer |
void |
setOutputLayer(InnerLayer outputLayer)
Setter of the property outputLayer |
void |
setWeights(double[][] weights)
Setter of the property weights |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Layer inputLayer
private InnerLayer outputLayer
private double[][] weights
private double[][] deltaW
private double[][] deltaWTmp
| Constructor Detail |
|---|
public Synapse()
public Synapse(Layer inputLayer,
InnerLayer outputLayer)
inputLayer - the input layer to useoutputLayer - the output layer to use| Method Detail |
|---|
public Layer getInputLayer()
public void setInputLayer(Layer inputLayer)
inputLayer - The inputLayer to set.public InnerLayer getOutputLayer()
public void setOutputLayer(InnerLayer outputLayer)
outputLayer - The outputLayer to set.public double[][] getWeights()
public void setWeights(double[][] weights)
weights - The weights to set.public double[][] getDeltaW()
public double[][] getDeltaWTmp()
public final void initForTraining()
public void setDeltaW(double[][] deltaW)
deltaW - The deltaWs to set.public void setDeltaWTmp(double[][] deltaWTmp)
deltaWTmp - The deltaWTmps to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||