org.neuroph.nnet.comp.neuron
Class DelayedNeuron
java.lang.Object
org.neuroph.core.Neuron
org.neuroph.nnet.comp.neuron.DelayedNeuron
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- CompetitiveNeuron
public class DelayedNeuron
- extends Neuron
Provides behaviour for neurons with delayed output.
- Author:
- Zoran Sevarac
- See Also:
- Serialized Form
Method Summary |
void |
calculate()
Calculates neuron's output |
double |
getOutput(int delay)
Returns neuron output with the specified delay |
Methods inherited from class org.neuroph.core.Neuron |
addInputConnection, addInputConnection, addInputConnection, addOutputConnection, getConnectionFrom, getError, getInputConnections, getInputFunction, getLabel, getNetInput, getOutConnections, getOutput, getParentLayer, getTransferFunction, getWeights, hasInputConnectionFrom, hasInputConnections, hasOutputConnectionTo, initializeWeights, randomizeWeights, randomizeWeights, randomizeWeights, removeAllConnections, removeAllInputConnections, removeAllOutputConnections, removeInputConnection, removeInputConnectionFrom, removeOutputConnection, removeOutputConnectionTo, reset, setError, setInput, setInputFunction, setLabel, setOutput, setParentLayer, setTransferFunction |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
outputHistory
protected transient List<Double> outputHistory
- Output history for this neuron
DelayedNeuron
public DelayedNeuron(InputFunction inputFunction,
TransferFunction transferFunction)
- Creates an instance of neuron which can delay output
- Parameters:
inputFunction
- neuron input functiontransferFunction
- neuron transfer function
calculate
public void calculate()
- Description copied from class:
Neuron
- Calculates neuron's output
- Overrides:
calculate
in class Neuron
getOutput
public double getOutput(int delay)
- Returns neuron output with the specified delay
- Parameters:
delay
- output delay
- Returns:
- neuron output at (t-delay) moment
Copyright © 2012. All Rights Reserved.