|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.neuroph.core.Connection
public class Connection
Weighted connection to another neuron.
Weight
,
Neuron
,
Serialized FormField Summary | |
---|---|
protected Neuron |
fromNeuron
From neuron for this connection (source neuron). |
protected Neuron |
toNeuron
To neuron for this connection (target, destination neuron) This connection is input connection for to neuron. |
protected Weight |
weight
Weight for this connection |
Constructor Summary | |
---|---|
Connection(Neuron fromNeuron,
Neuron toNeuron)
Creates a new connection between specified neurons with random weight |
|
Connection(Neuron fromNeuron,
Neuron toNeuron,
double weightVal)
Creates a new connection to specified neuron with specified weight value |
|
Connection(Neuron fromNeuron,
Neuron toNeuron,
Weight weight)
Creates a new connection to specified neuron with specified weight object |
Method Summary | |
---|---|
Neuron |
getFromNeuron()
Gets from neuron for this connection |
double |
getInput()
Returns input received through this connection - the activation that comes from the output of the cell on the other end of connection |
Neuron |
getToNeuron()
Gets to neuron for this connection |
Weight |
getWeight()
Returns weight for this connection |
double |
getWeightedInput()
Returns the weighted input received through this connection |
void |
setFromNeuron(Neuron fromNeuron)
Sets from neuron for this connection |
void |
setToNeuron(Neuron toNeuron)
Sets to neuron for this connection |
void |
setWeight(Weight weight)
Set the weight of the connection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Neuron fromNeuron
protected Neuron toNeuron
protected Weight weight
Constructor Detail |
---|
public Connection(Neuron fromNeuron, Neuron toNeuron)
fromNeuron
- neuron to connect fromtoNeuron
- neuron to connect topublic Connection(Neuron fromNeuron, Neuron toNeuron, Weight weight)
fromNeuron
- neuron to connect fromtoNeuron
- neuron to connect toweight
- weight for this connectionpublic Connection(Neuron fromNeuron, Neuron toNeuron, double weightVal)
fromNeuron
- neuron to connect fromtoNeuron
- neuron to connect toweightVal
- weight value for this connectionMethod Detail |
---|
public Weight getWeight()
public void setWeight(Weight weight)
weight
- The new weight of the connection.public double getInput()
public double getWeightedInput()
public Neuron getFromNeuron()
public void setFromNeuron(Neuron fromNeuron)
fromNeuron
- neuron to set as from neuronpublic Neuron getToNeuron()
public void setToNeuron(Neuron toNeuron)
toNeuron
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |