public class RandomNeuronRule extends NeuronUpdateRule implements BoundedUpdateRule, ActivityGenerator
NeuronUpdateRule.InputType
DEFAULT_INCREMENT, increment, inputType
Constructor and Description |
---|
RandomNeuronRule() |
RandomNeuronRule(Neuron n) |
RandomNeuronRule(RandomNeuronRule rn,
Neuron n) |
Modifier and Type | Method and Description |
---|---|
RandomNeuronRule |
deepCopy()
Returns a deep copy of the update rule.
|
java.lang.String |
getDescription()
Returns a brief description of this update rule.
|
double |
getLowerBound()
Returns the lower bound.
|
Randomizer |
getRandomizer() |
double |
getRandomValue()
Returns a random value between the upper and lower bounds of this neuron.
|
Network.TimeType |
getTimeType()
Returns the type of time update (discrete or continuous) associated with
this neuron.
|
double |
getUpperBound()
Returns the upper bound.
|
void |
init(Neuron n)
TODO: Doesn't feel like good API...
|
void |
setLowerBound(double floor)
Sets the lower bound of this neuron update rule's activation.
|
void |
setRandomizer(Randomizer randomizer) |
void |
setUpperBound(double ceiling)
Sets the upper bound of this neuron update rule's activation.
|
void |
update(Neuron neuron)
Apply the update rule.
|
clear, contextualDecrement, contextualIncrement, decrementActivation, getDefaultIncrement, getGraphicalLowerBound, getGraphicalUpperBound, getIncrement, getInputType, getToolTipText, incrementActivation, isSkipsSynapticUpdates, isSpikingNeuron, setIncrement, setInputType
public RandomNeuronRule(Neuron n)
public RandomNeuronRule(RandomNeuronRule rn, Neuron n)
public RandomNeuronRule()
public Network.TimeType getTimeType()
getTimeType
in class NeuronUpdateRule
public RandomNeuronRule deepCopy()
init
must be called to ensure
rational behavior for an activity generator. The
copy constructor
is
the preferred method of copying because init
is
called on the neuron parameter automatically.deepCopy
in class NeuronUpdateRule
public void update(Neuron neuron)
update
in class NeuronUpdateRule
neuron
- parent neuronpublic Randomizer getRandomizer()
public void setRandomizer(Randomizer randomizer)
randomizer
- The randomizer to set.public java.lang.String getDescription()
NeuronUpdateRule
getDescription
in class NeuronUpdateRule
public double getRandomValue()
NeuronUpdateRule
getRandomValue
in class NeuronUpdateRule
public double getUpperBound()
BoundedUpdateRule
getUpperBound
in interface BoundedUpdateRule
public double getLowerBound()
BoundedUpdateRule
getLowerBound
in interface BoundedUpdateRule
public void init(Neuron n)
ActivityGenerator
init
in interface ActivityGenerator
public void setUpperBound(double ceiling)
BoundedUpdateRule
setUpperBound
in interface BoundedUpdateRule
ceiling
- the upper boundpublic void setLowerBound(double floor)
BoundedUpdateRule
setLowerBound
in interface BoundedUpdateRule
floor
- the lower bound