public class BinaryRule extends NeuronUpdateRule
NeuronUpdateRule.InputType
DEFAULT_INCREMENT, increment, inputType
Constructor and Description |
---|
BinaryRule() |
Modifier and Type | Method and Description |
---|---|
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.
|
BinaryRule |
deepCopy()
Returns a deep copy of the update rule.
|
double |
getBias() |
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 |
getLowerBound() |
double |
getRandomValue()
Returns a random value between the upper and lower bounds of this neuron.
|
double |
getThreshold() |
Network.TimeType |
getTimeType()
Returns the type of time update (discrete or continuous) associated with
this neuron.
|
double |
getUpperBound() |
void |
setBias(double bias) |
void |
setCeiling(double ceiling) |
void |
setFloor(double floor) |
void |
setThreshold(double threshold) |
void |
update(Neuron neuron)
Apply the update rule.
|
clear, decrementActivation, getDefaultIncrement, getIncrement, getInputType, getToolTipText, incrementActivation, isSkipsSynapticUpdates, isSpikingNeuron, setIncrement, setInputType
public Network.TimeType getTimeType()
getTimeType
in class NeuronUpdateRule
public BinaryRule deepCopy()
deepCopy
in class NeuronUpdateRule
public void update(Neuron neuron)
update
in class NeuronUpdateRule
neuron
- parent neuronpublic double getRandomValue()
getRandomValue
in class NeuronUpdateRule
public double getThreshold()
public void setThreshold(double threshold)
threshold
- The threshold to set.public double getBias()
public void setBias(double bias)
bias
- sets the bias of the neuron.public java.lang.String getDescription()
NeuronUpdateRule
getDescription
in class NeuronUpdateRule
public double getUpperBound()
public void setCeiling(double ceiling)
public double getLowerBound()
public void setFloor(double floor)
public void contextualIncrement(Neuron n)
NeuronUpdateRule
contextualIncrement
in class NeuronUpdateRule
n
- neuron to be incrementedpublic void contextualDecrement(Neuron n)
NeuronUpdateRule
contextualDecrement
in class NeuronUpdateRule
n
- neuronpublic double getGraphicalLowerBound()
NeuronUpdateRule
getGraphicalLowerBound
in class NeuronUpdateRule
public double getGraphicalUpperBound()
NeuronUpdateRule
getGraphicalUpperBound
in class NeuronUpdateRule