|
|||||||||
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
Provides neuron behaviour specific for competitive neurons which are used in competitive layers, and networks with competitive learning.
Field Summary |
---|
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, addInputConnection, addOutputConnection, getConnectionFrom, getError, getInputConnections, getInputFunction, getInputsIterator, getNetInput, getOutConnections, getOutput, getParentLayer, getTransferFunction, getWeightsVector, hasInputConnections, randomizeInputWeights, removeInputConnectionFrom, setError, setInput, setInputFunction, setOutput, setParentLayer, setTransferFunction |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |