|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSynapse
The Synapse class is used to connect Neurons together. Synapses are created with adjustable random weights.
ContextSynapse
Constructor Summary | |
Synapse(Neuron inputNeuron,
Neuron outputNeuron)
This constructor for the Synapse connects two Neurons together,
and sets it's weight to a random value |
Method Summary | |
void |
adjustWeight()
Adjusts the weight |
void |
calculateWeightChange(double learningRate,
double momentum,
double errorTerm)
Calculates the weight change |
void |
calculateWeightChange(double learningRate,
double momentum,
double errorTerm,
int delays)
Calculates the average weight change for use with time delays |
double |
getWeight()
Gets the Synapse weight |
protected void |
setWeight(int newWeight)
Sets the Synapse weight |
void |
transferValue()
Transfers a weighted value from the input Neuron to the output Neuron |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Synapse(Neuron inputNeuron, Neuron outputNeuron)
Synapse
connects two Neurons together,
and sets it's weight to a random value
inputNeuron
- The input Neuron
outputNeuron
- The output Neuron
Method Detail |
public double getWeight()
protected void setWeight(int newWeight)
newWeight
- The new weightpublic void calculateWeightChange(double learningRate, double momentum, double errorTerm)
public void calculateWeightChange(double learningRate, double momentum, double errorTerm, int delays)
public void adjustWeight()
public void transferValue()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |