|
Neuroph | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.neuroph.core.Neuron
org.neuroph.nnet.comp.DelayedNeuron
org.neuroph.nnet.comp.CompetitiveNeuron
public class CompetitiveNeuron
The CompetitiveNeuron class provides neuron behaviour specific for competitive neurons which are used in competitive layers, and networks with competitive learning.
Field Summary | |
---|---|
private java.util.Vector<Connection> |
connectionsFromOtherLayers
Collection of conections from neurons in other layers |
private java.util.Vector<Connection> |
connectionsFromThisLayer
Collection of connections from neurons in the same layer as this neuron (lateral connections used for competition) |
private boolean |
isCompeting
Flag indicates if this neuron is in competing mode |
private static long |
serialVersionUID
The class fingerprint that is set to indicate serialization compatibility with a previous version of the class. |
Fields inherited from class org.neuroph.nnet.comp.DelayedNeuron |
---|
outputHistory |
Fields inherited from class org.neuroph.core.Neuron |
---|
error, inputConnections, inputFunction, netInput, outConnections, output, parentLayer, transferFunction |
Constructor Summary | |
---|---|
CompetitiveNeuron(InputFunction inputFunction,
TransferFunction transferFunction)
Creates an instance of CompetitiveNeuron with specified input and transfer functions |
Method Summary | |
---|---|
void |
addInputConnection(Connection connection)
Adds input connection for this competitive neuron |
void |
calculate()
Calculates neuron's output |
java.util.Vector<Connection> |
getConnectionsFromOtherLayers()
Returns collection of connections from other layers |
boolean |
isCompeting()
Retruns true if this neuron is in competing mode, false otherwise |
void |
reset()
Resets the input, output and mode for this neuron |
void |
setIsCompeting(boolean isCompeting)
Sets the flag to indicate that this neuron is in competing mode |
Methods inherited from class org.neuroph.nnet.comp.DelayedNeuron |
---|
getOutput |
Methods inherited from class org.neuroph.core.Neuron |
---|
addInputConnection, addOutputConnection, getConnectionFrom, getError, getInputConnections, getInputFunction, getInputsIterator, getNetInput, getOutConnections, getOutput, getParentLayer, getTransferFunction, getWeightsVector, hasInputConnections, randomizeInputWeights, removeInput, setError, setInput, setInputFunction, setOutput, setParentLayer, setTransferFunction |
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
private boolean isCompeting
private java.util.Vector<Connection> connectionsFromOtherLayers
private java.util.Vector<Connection> connectionsFromThisLayer
Constructor Detail |
---|
public CompetitiveNeuron(InputFunction inputFunction, TransferFunction transferFunction)
inputFunction
- neuron input functiontransferFunction
- neuron ransfer functionMethod Detail |
---|
public void calculate()
Neuron
calculate
in class DelayedNeuron
public void addInputConnection(Connection connection)
addInputConnection
in class Neuron
connection
- input connectionpublic java.util.Vector<Connection> getConnectionsFromOtherLayers()
public void reset()
reset
in class Neuron
public boolean isCompeting()
public void setIsCompeting(boolean isCompeting)
isCompeting
- value for the isCompeting flag
|
Neuroph | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |