public abstract class SpikingNeuronUpdateRule extends NeuronUpdateRule
NeuronUpdateRule.InputType
DEFAULT_INCREMENT, increment, inputType
Constructor and Description |
---|
SpikingNeuronUpdateRule() |
Modifier and Type | Method and Description |
---|---|
void |
clear(Neuron neuron)
Set activation to 0; override for other "clearing" behavior (e.g.
|
double |
getLastSpikeTime() |
Network.TimeType |
getTimeType()
Returns the type of time update (discrete or continuous) associated with
this neuron.
|
boolean |
isSpikingNeuron()
A helper method which identifies this and all subclasses as variations of
spiking neurons.
|
void |
setHasSpiked(boolean hasSpiked,
Neuron neuron) |
void |
setLastSpikeTime(double lastSpikeTime) |
abstract void |
update(Neuron neuron)
Apply the update rule.
|
contextualDecrement, contextualIncrement, decrementActivation, deepCopy, getDefaultIncrement, getDescription, getGraphicalLowerBound, getGraphicalUpperBound, getIncrement, getInputType, getRandomValue, getToolTipText, incrementActivation, isSkipsSynapticUpdates, setIncrement, setInputType
public void clear(Neuron neuron)
NeuronUpdateRule
clear
in class NeuronUpdateRule
neuron
- reference to parent neuronpublic Network.TimeType getTimeType()
getTimeType
in class NeuronUpdateRule
public abstract void update(Neuron neuron)
update
in class NeuronUpdateRule
neuron
- parent neuronpublic void setHasSpiked(boolean hasSpiked, Neuron neuron)
hasSpiked
- the hasSpiked to setneuron
- the neuron which has (or has not) spiked.public double getLastSpikeTime()
public void setLastSpikeTime(double lastSpikeTime)
lastSpikeTime
- the lastSpikeTime to setpublic final boolean isSpikingNeuron()
isSpikingNeuron
in class NeuronUpdateRule