public class IntegrateAndFireRule extends SpikingNeuronUpdateRule implements NoisyUpdateRule
NeuronUpdateRule.InputType
DEFAULT_INCREMENT, increment, inputType
Constructor and Description |
---|
IntegrateAndFireRule() |
Modifier and Type | Method and Description |
---|---|
IntegrateAndFireRule |
deepCopy()
Returns a deep copy of the update rule.
|
boolean |
getAddNoise()
Return true if add noise is turned on.
|
double |
getBackgroundCurrent() |
java.lang.String |
getDescription()
Returns a brief description of this update rule.
|
double |
getGraphicalLowerBound()
Returns a value for lower bound to be used in computing the saturation of
neuron nodes.
|
double |
getGraphicalUpperBound()
Returns a value for upper bound to be used in computing the saturation of
neuron nodes.
|
Randomizer |
getNoiseGenerator()
Return the noise generator.
|
double |
getRandomValue()
Returns a random value between the upper and lower bounds of this neuron.
|
double |
getResetPotential() |
double |
getResistance() |
double |
getRestingPotential() |
double |
getThreshold() |
double |
getTimeConstant() |
void |
setAddNoise(boolean addNoise)
Set whether noise should be used.
|
void |
setAddNoise(Randomizer noise) |
void |
setBackgroundCurrent(double backgroundCurrent) |
void |
setNoiseGenerator(Randomizer noiseGenerator)
Set the noise generator.
|
void |
setResetPotential(double resetPotential) |
void |
setResistance(double resistance) |
void |
setRestingPotential(double restingPotential) |
void |
setThreshold(double threshold) |
void |
setTimeConstant(double timeConstant) |
void |
update(Neuron neuron)
Apply the update rule.
|
clear, getLastSpikeTime, getTimeType, isSpikingNeuron, setHasSpiked, setLastSpikeTime
contextualDecrement, contextualIncrement, decrementActivation, getDefaultIncrement, getIncrement, getInputType, getToolTipText, incrementActivation, isSkipsSynapticUpdates, setIncrement, setInputType
public IntegrateAndFireRule deepCopy()
deepCopy
in class NeuronUpdateRule
public void update(Neuron neuron)
update
in class SpikingNeuronUpdateRule
neuron
- parent neuronpublic double getRandomValue()
getRandomValue
in class NeuronUpdateRule
public double getRestingPotential()
public void setRestingPotential(double restingPotential)
restingPotential
- The restingPotential to set.public double getResistance()
public void setResistance(double resistance)
resistance
- The resistance to set.public boolean getAddNoise()
NoisyUpdateRule
getAddNoise
in interface NoisyUpdateRule
public void setAddNoise(boolean addNoise)
NoisyUpdateRule
setAddNoise
in interface NoisyUpdateRule
addNoise
- The addNoise to set.public void setAddNoise(Randomizer noise)
noise
- The noise to set.public Randomizer getNoiseGenerator()
NoisyUpdateRule
getNoiseGenerator
in interface NoisyUpdateRule
public void setNoiseGenerator(Randomizer noiseGenerator)
NoisyUpdateRule
setNoiseGenerator
in interface NoisyUpdateRule
noiseGenerator
- The noiseGenerator to set.public double getResetPotential()
public void setResetPotential(double resetPotential)
resetPotential
- The resetPotential to set.public double getBackgroundCurrent()
public void setBackgroundCurrent(double backgroundCurrent)
backgroundCurrent
- The background current to setpublic double getThreshold()
public void setThreshold(double threshold)
threshold
- The threshold to set.public double getTimeConstant()
public void setTimeConstant(double timeConstant)
timeConstant
- The timeConstant to set.public java.lang.String getDescription()
NeuronUpdateRule
getDescription
in class NeuronUpdateRule
public double getGraphicalLowerBound()
NeuronUpdateRule
getGraphicalLowerBound
in class NeuronUpdateRule
public double getGraphicalUpperBound()
NeuronUpdateRule
getGraphicalUpperBound
in class NeuronUpdateRule