Neuroph

org.neuroph.nnet.neuron
Class CompetitiveNeuron

java.lang.Object
  extended by org.neuroph.core.Neuron
      extended by org.neuroph.nnet.neuron.DelayedNeuron
          extended by org.neuroph.nnet.neuron.CompetitiveNeuron
All Implemented Interfaces:
java.io.Serializable

public class CompetitiveNeuron
extends DelayedNeuron

The CompetitiveNeuron class provides neuron behaviour specific for competitive neurons which are used in competitive layers, and networks with competitive learning.

See Also:
Serialized Form

Field Summary
private  java.util.Vector<Connection> connectionsFromOtherLayers
           
private  java.util.Vector<Connection> connectionsFromThisLayer
           
private  boolean isCompeting
           
private static long serialVersionUID
           
 
Fields inherited from class org.neuroph.nnet.neuron.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)
           
 
Method Summary
 void addInputConnection(Connection connection)
          Adds the specified input connection
 void calculate()
          Calculates neuron's output
 java.util.Vector<Connection> getConnectionsFromOtherLayers()
           
 boolean isCompeting()
           
 void reset()
          Sets input and output activation levels to zero
 void setIsCompeting(boolean isCompeting)
           
 
Methods inherited from class org.neuroph.nnet.neuron.DelayedNeuron
getOutput
 
Methods inherited from class org.neuroph.core.Neuron
addInputConnection, addOutputConnection, getConnectionFrom, getError, getInputConnections, getInputFunction, getInputsIterator, getNetInput, getOutConnections, getOutput, getParentLayer, getTransferFunction, getWeightVector, 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

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

isCompeting

private boolean isCompeting

connectionsFromOtherLayers

private java.util.Vector<Connection> connectionsFromOtherLayers

connectionsFromThisLayer

private java.util.Vector<Connection> connectionsFromThisLayer
Constructor Detail

CompetitiveNeuron

public CompetitiveNeuron(InputFunction inputFunction,
                         TransferFunction transferFunction)
Method Detail

calculate

public void calculate()
Description copied from class: Neuron
Calculates neuron's output

Overrides:
calculate in class DelayedNeuron

addInputConnection

public void addInputConnection(Connection connection)
Description copied from class: Neuron
Adds the specified input connection

Overrides:
addInputConnection in class Neuron
Parameters:
connection - input connection to add

getConnectionsFromOtherLayers

public java.util.Vector<Connection> getConnectionsFromOtherLayers()

reset

public void reset()
Description copied from class: Neuron
Sets input and output activation levels to zero

Overrides:
reset in class Neuron

isCompeting

public boolean isCompeting()

setIsCompeting

public void setIsCompeting(boolean isCompeting)

Neuroph