|
Neuroph | |||||||||
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
The Connection class represents weighted connection to another neuron.
Weight
,
Neuron
,
Serialized FormField Summary | |
---|---|
protected Neuron |
connectedNeuron
Connected neuron |
private static long |
serialVersionUID
The class fingerprint that is set to indicate serialization compatibility with a previous version of the class |
protected Weight |
weight
Weight for this connection |
Constructor Summary | |
---|---|
Connection(Neuron connectTo)
Creates new connection to specified neuron with random weight |
|
Connection(Neuron connectTo,
double weightVal)
Creates new connection to specified neuron with specified weight value |
|
Connection(Neuron from,
Neuron connectTo)
Creates new connection between specified neurons with random weight value |
|
Connection(Neuron connectTo,
Weight weight)
Creates new connection to specified neuron with specified weight object |
Method Summary | |
---|---|
Neuron |
getConnectedNeuron()
Returns the connectedNeuron neuron |
double |
getInput()
Returns input received through this connection - the activation that comes from the output of the cell on the other end of connection |
Weight |
getWeight()
Returns conection weight object |
double |
getWeightedInput()
Returns the weighted input received through this connection |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
protected Neuron connectedNeuron
protected Weight weight
Constructor Detail |
---|
public Connection(Neuron connectTo)
connectTo
- neuron to connect topublic Connection(Neuron connectTo, Weight weight)
connectTo
- neuron to connect toweight
- weight for this connectionpublic Connection(Neuron connectTo, double weightVal)
connectTo
- neuron to connect toweightVal
- weight value for this connectionpublic Connection(Neuron from, Neuron connectTo)
from
- neron to connectconnectTo
- neuron to connect toMethod Detail |
---|
public Weight getWeight()
public Neuron getConnectedNeuron()
public double getInput()
public double getWeightedInput()
|
Neuroph | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |