public abstract class NeuronUpdateRule
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
NeuronUpdateRule.InputType
An enum specifying how a neuron sums its inputs.
|
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_INCREMENT
The default increment of a neuron using this rule.
|
protected double |
increment
Amount by which to increment or decrement neuron.
|
protected NeuronUpdateRule.InputType |
inputType |
Constructor and Description |
---|
NeuronUpdateRule() |
Modifier and Type | Method and Description |
---|---|
void |
clear(Neuron neuron)
Set activation to 0; override for other "clearing" behavior (e.g.
|
void |
contextualDecrement(Neuron n)
Decrement a neuron by increment, respecting neuron specific constraints.
|
void |
contextualIncrement(Neuron n)
Increment a neuron by increment, respecting neuron specific constraints.
|
void |
decrementActivation(Neuron n)
Decrement a neuron by increment.
|
abstract NeuronUpdateRule |
deepCopy()
Returns a deep copy of the update rule.
|
static double |
getDefaultIncrement() |
abstract 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.
|
double |
getIncrement() |
NeuronUpdateRule.InputType |
getInputType() |
double |
getRandomValue()
Returns a random value between the upper and lower bounds of this neuron.
|
abstract Network.TimeType |
getTimeType()
Returns the type of time update (discrete or continuous) associated with
this neuron.
|
java.lang.String |
getToolTipText(Neuron neuron)
Returns string for tool tip or short description.
|
void |
incrementActivation(Neuron n)
Increment a neuron by increment.
|
boolean |
isSkipsSynapticUpdates() |
boolean |
isSpikingNeuron() |
void |
setIncrement(double increment) |
void |
setInputType(NeuronUpdateRule.InputType inputType) |
abstract void |
update(Neuron neuron)
Apply the update rule.
|
public static final double DEFAULT_INCREMENT
protected NeuronUpdateRule.InputType inputType
protected double increment
public abstract Network.TimeType getTimeType()
public abstract void update(Neuron neuron)
neuron
- parent neuronpublic abstract NeuronUpdateRule deepCopy()
public final void incrementActivation(Neuron n)
n
- neuronpublic final void decrementActivation(Neuron n)
n
- neuronpublic void contextualIncrement(Neuron n)
n
- neuron to be incrementedpublic void contextualDecrement(Neuron n)
n
- neuronpublic double getRandomValue()
public double getGraphicalLowerBound()
public double getGraphicalUpperBound()
public void clear(Neuron neuron)
neuron
- reference to parent neuronpublic abstract java.lang.String getDescription()
public java.lang.String getToolTipText(Neuron neuron)
neuron
- reference to parent neuronpublic double getIncrement()
public void setIncrement(double increment)
increment
- the increment to setpublic static double getDefaultIncrement()
public NeuronUpdateRule.InputType getInputType()
public void setInputType(NeuronUpdateRule.InputType inputType)
public boolean isSpikingNeuron()
public boolean isSkipsSynapticUpdates()