|
|||||||||
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 |
connectedNeuron
Connected neuron |
protected Weight |
weight
Weight for this connection |
Constructor Summary | |
---|---|
Connection(Neuron connectTo)
Creates a new connection to specified neuron with random weight |
|
Connection(Neuron connectTo,
double weightVal)
Creates a new connection to specified neuron with specified weight value |
|
Connection(Neuron from,
Neuron connectTo)
Creates a new connection between specified neurons with random weight value |
|
Connection(Neuron connectTo,
Weight weight)
Creates a new connection to specified neuron with specified weight object |
Method Summary | |
---|---|
Neuron |
getConnectedNeuron()
Returns the connected neuron of 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 |
Weight |
getWeight()
Returns weight for this connection |
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 |
---|
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |