public class SpikingThresholdRule extends SpikingNeuronUpdateRule implements NoisyUpdateRule
NeuronUpdateRule.InputType
DEFAULT_INCREMENT, increment, inputType
Constructor and Description |
---|
SpikingThresholdRule() |
Modifier and Type | Method and Description |
---|---|
SpikingThresholdRule |
deepCopy()
Returns a deep copy of the update rule.
|
boolean |
getAddNoise()
Return true if add noise is turned on.
|
java.lang.String |
getDescription()
Returns a brief description of this update rule.
|
Randomizer |
getNoiseGenerator()
Return the noise generator.
|
double |
getRandomValue()
Returns a random value between the upper and lower bounds of this neuron.
|
double |
getThreshold() |
void |
setAddNoise(boolean noise)
Set whether noise should be used.
|
void |
setNoiseGenerator(Randomizer rand)
Set the noise generator.
|
void |
setThreshold(double threshold) |
void |
update(Neuron neuron)
Apply the update rule.
|
clear, getLastSpikeTime, getTimeType, isSpikingNeuron, setHasSpiked, setLastSpikeTime
contextualDecrement, contextualIncrement, decrementActivation, getDefaultIncrement, getGraphicalLowerBound, getGraphicalUpperBound, getIncrement, getInputType, getToolTipText, incrementActivation, isSkipsSynapticUpdates, setIncrement, setInputType
public SpikingThresholdRule deepCopy()
NeuronUpdateRule
deepCopy
in class NeuronUpdateRule
public void update(Neuron neuron)
SpikingNeuronUpdateRule
update
in class SpikingNeuronUpdateRule
neuron
- parent neuronpublic double getRandomValue()
getRandomValue
in class NeuronUpdateRule
public double getThreshold()
public void setThreshold(double threshold)
threshold
- the threshold to setpublic java.lang.String getDescription()
NeuronUpdateRule
getDescription
in class NeuronUpdateRule
public Randomizer getNoiseGenerator()
NoisyUpdateRule
getNoiseGenerator
in interface NoisyUpdateRule
public void setNoiseGenerator(Randomizer rand)
NoisyUpdateRule
setNoiseGenerator
in interface NoisyUpdateRule
rand
- the generator to setpublic boolean getAddNoise()
NoisyUpdateRule
getAddNoise
in interface NoisyUpdateRule
public void setAddNoise(boolean noise)
NoisyUpdateRule
setAddNoise
in interface NoisyUpdateRule
noise
- true if noise should be used; false otherwise.