public class StochasticRule extends SpikingNeuronUpdateRule implements ActivityGenerator
NeuronUpdateRule.InputType
DEFAULT_INCREMENT, increment, inputType
Constructor and Description |
---|
StochasticRule() |
Modifier and Type | Method and Description |
---|---|
StochasticRule |
deepCopy()
Returns a deep copy of the update rule.
|
java.lang.String |
getDescription()
Returns a brief description of this update rule.
|
double |
getFiringProbability() |
double |
getLowerValue() |
Network.TimeType |
getTimeType()
Returns the type of time update (discrete or continuous) associated with
this neuron.
|
double |
getUpperValue() |
void |
init(Neuron neuron)
TODO: Doesn't feel like good API...
|
void |
setFiringProbability(double firingProbability) |
void |
setLowerValue(double lowerValue) |
void |
setUpperValue(double upperValue) |
void |
update(Neuron neuron)
Apply the update rule.
|
clear, getLastSpikeTime, isSpikingNeuron, setHasSpiked, setLastSpikeTime
contextualDecrement, contextualIncrement, decrementActivation, getDefaultIncrement, getGraphicalLowerBound, getGraphicalUpperBound, getIncrement, getInputType, getRandomValue, getToolTipText, incrementActivation, isSkipsSynapticUpdates, setIncrement, setInputType
public Network.TimeType getTimeType()
getTimeType
in class SpikingNeuronUpdateRule
public void init(Neuron neuron)
init
in interface ActivityGenerator
public StochasticRule deepCopy()
deepCopy
in class NeuronUpdateRule
public void update(Neuron neuron)
update
in class SpikingNeuronUpdateRule
neuron
- parent neuronpublic double getFiringProbability()
public void setFiringProbability(double firingProbability)
firingProbability
- The firingProbability to set.public java.lang.String getDescription()
NeuronUpdateRule
getDescription
in class NeuronUpdateRule
public double getLowerValue()
public void setLowerValue(double lowerValue)
lowerValue
- the lowerValue to setpublic double getUpperValue()
public void setUpperValue(double upperValue)
upperValue
- the upperValue to set