public class FitzhughNagumo extends SpikingNeuronUpdateRule implements NoisyUpdateRule
NeuronUpdateRule.InputType
DEFAULT_INCREMENT, increment, inputType
Constructor and Description |
---|
FitzhughNagumo() |
Modifier and Type | Method and Description |
---|---|
FitzhughNagumo |
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.
|
double |
getiBg() |
Randomizer |
getNoiseGenerator()
Return the noise generator.
|
double |
getRandomValue()
Returns a random value between the upper and lower bounds of this neuron.
|
double |
getRefractoryPeriod() |
double |
getThreshold() |
double |
getV() |
double |
getW() |
void |
setAddNoise(boolean addNoise)
Set whether noise should be used.
|
void |
setiBg(double iBg) |
void |
setNoiseGenerator(Randomizer noiseGenerator)
Set the noise generator.
|
void |
setRefractoryPeriod(double refractoryPeriod) |
void |
setThreshold(double threshold) |
void |
setV(double v) |
void |
setW(double w) |
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 FitzhughNagumo 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 getW()
public void setW(double w)
w
- The w to set.public double getV()
public void setV(double v)
v
- The v to set.public double getiBg()
public void setiBg(double iBg)
public boolean getAddNoise()
NoisyUpdateRule
getAddNoise
in interface NoisyUpdateRule
public void setAddNoise(boolean addNoise)
NoisyUpdateRule
setAddNoise
in interface NoisyUpdateRule
addNoise
- The addNoise 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 java.lang.String getDescription()
NeuronUpdateRule
getDescription
in class NeuronUpdateRule
public double getThreshold()
public void setThreshold(double threshold)
public double getRefractoryPeriod()
public void setRefractoryPeriod(double refractoryPeriod)