public class CompetitiveNeuron extends DelayedNeuron
outputHistorydelta, inputConnections, inputFunction, outConnections, output, parentLayer, totalInput, transferFunction| Constructor and Description |
|---|
CompetitiveNeuron(InputFunction inputFunction,
TransferFunction transferFunction)
Creates an instance of CompetitiveNeuron with specified input and transfer functions
|
| Modifier and Type | Method and Description |
|---|---|
void |
addInputConnection(Connection connection)
Adds input connection for this competitive neuron
|
void |
calculate()
Calculates neuron's output
|
List<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
|
getOutputaddInputConnection, addInputConnection, addOutputConnection, clone, getConnectionFrom, getDelta, getInputConnections, getInputFunction, getLabel, getNetInput, getOutConnections, getOutput, getParentLayer, getTransferFunction, getWeights, hasInputConnectionFrom, hasInputConnections, hasOutputConnectionTo, initializeWeights, removeAllConnections, removeAllInputConnections, removeAllOutputConnections, removeInputConnection, removeInputConnectionFrom, removeOutputConnection, removeOutputConnectionTo, setDelta, setInput, setInputFunction, setLabel, setOutput, setParentLayer, setTransferFunctionpublic CompetitiveNeuron(InputFunction inputFunction, TransferFunction transferFunction)
inputFunction - neuron input functiontransferFunction - neuron ransfer functionpublic void calculate()
Neuroncalculate in class DelayedNeuronpublic void addInputConnection(Connection connection)
addInputConnection in class Neuronconnection - input connectionpublic List<Connection> getConnectionsFromOtherLayers()
public void reset()
public boolean isCompeting()
public void setIsCompeting(boolean isCompeting)
isCompeting - value for the isCompeting flagCopyright © 2019 Neuroph Project. All rights reserved.