public class HebbianThresholdRule extends SynapseUpdateRule
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_LEARNING_RATE
Learning rate.
|
static double |
DEFAULT_OUTPUT_THRESHOLD
Output threshold.
|
static double |
DEFAULT_OUTPUT_THRESHOLD_MOMENTUM
Output threshold momentum.
|
static boolean |
DEFAULT_USE_SLIDING_OUTPUT_THRESHOLD
Use sliding output threshold.
|
Constructor and Description |
---|
HebbianThresholdRule() |
Modifier and Type | Method and Description |
---|---|
SynapseUpdateRule |
deepCopy()
Returns a deep copy of the update rule.
|
java.lang.String |
getDescription()
Returns a brief description of this update rule.
|
double |
getLearningRate() |
double |
getOutputThreshold() |
double |
getOutputThresholdMomentum() |
boolean |
getUseSlidingOutputThreshold() |
void |
init(Synapse synapse)
Initialize the update rule and make necessary changes to the parent
synapse.
|
void |
setLearningRate(double momentum) |
void |
setOutputThreshold(double outputThreshold) |
void |
setOutputThresholdMomentum(double outputThresholdMomentum) |
void |
setUseSlidingOutputThreshold(boolean useSlidingOutputThreshold) |
void |
update(Synapse synapse)
Apply the update rule.
|
clear, getToolTipText
public static final double DEFAULT_LEARNING_RATE
public static final double DEFAULT_OUTPUT_THRESHOLD_MOMENTUM
public static final double DEFAULT_OUTPUT_THRESHOLD
public static final boolean DEFAULT_USE_SLIDING_OUTPUT_THRESHOLD
public void init(Synapse synapse)
SynapseUpdateRule
init
in class SynapseUpdateRule
synapse
- parent synapsepublic java.lang.String getDescription()
SynapseUpdateRule
getDescription
in class SynapseUpdateRule
public SynapseUpdateRule deepCopy()
SynapseUpdateRule
deepCopy
in class SynapseUpdateRule
public void update(Synapse synapse)
SynapseUpdateRule
update
in class SynapseUpdateRule
synapse
- parent synapsepublic double getLearningRate()
public void setLearningRate(double momentum)
momentum
- The momentum to set.public double getOutputThreshold()
public void setOutputThreshold(double outputThreshold)
outputThreshold
- The outputThreshold to set.public boolean getUseSlidingOutputThreshold()
public void setUseSlidingOutputThreshold(boolean useSlidingOutputThreshold)
useSlidingOutputThreshold
- The useSlidingOutputThreshold to set.public double getOutputThresholdMomentum()
public void setOutputThresholdMomentum(double outputThresholdMomentum)
outputThresholdMomentum
- The outputThresholdMomentum to set.