org.simnet.synapses
Class HebbianThresholdSynapse

java.lang.Object
  extended by org.simnet.interfaces.Synapse
      extended by org.simnet.synapses.HebbianThresholdSynapse
All Implemented Interfaces:
GaugeSource

public class HebbianThresholdSynapse
extends Synapse

HebbianThresholdSynapse.


Field Summary
 
Fields inherited from class org.simnet.interfaces.Synapse
id, increment, lowerBound, NUM_PARAMETERS, source, spikeResponder, strength, target, upperBound
 
Constructor Summary
HebbianThresholdSynapse()
          Default constructor needed for external calls which create neurons then set their parameters.
HebbianThresholdSynapse(Neuron source, Neuron target)
          Creates a weight connecting source and target neurons.
HebbianThresholdSynapse(Neuron src, Neuron tar, double val, String theId)
          Creates a weight of some value connecting two neurons.
HebbianThresholdSynapse(Synapse s)
          This constructor is used when creating a neuron of one type from another neuron of another type Only values common to different types of neuron are copied.
 
Method Summary
 Synapse duplicate()
           
 double getLearningRate()
           
static String getName()
           
 double getOutputThreshold()
           
 double getOutputThresholdMomentum()
           
 boolean getUseSlidingOutputThreshold()
           
 void setLearningRate(double momentum)
           
 void setOutputThreshold(double outputThreshold)
           
 void setOutputThresholdMomentum(double outputThresholdMomentum)
           
 void setUseSlidingOutputThreshold(boolean useSlidingOutputThreshold)
           
 void update()
          Update the synapse.
 
Methods inherited from class org.simnet.interfaces.Synapse
checkBounds, clip, decrementWeight, duplicate, getDelay, getGaugeValue, getId, getIncrement, getLowerBound, getParent, getSource, getSpikeResponder, getStrength, getSynapseTypeIndex, getTarget, getType, getTypeList, getUpperBound, getValue, incrementWeight, init, initSpikeResponder, randomize, reinforce, setDelay, setId, setIncrement, setLowerBound, setParent, setSource, setSpikeResponder, setStrength, setTarget, setUpperBound, toString, weaken
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HebbianThresholdSynapse

public HebbianThresholdSynapse(Neuron src,
                               Neuron tar,
                               double val,
                               String theId)
Creates a weight of some value connecting two neurons.

Parameters:
src - source neuron
tar - target neuron
val - initial weight value
theId - Id of the synapse

HebbianThresholdSynapse

public HebbianThresholdSynapse()
Default constructor needed for external calls which create neurons then set their parameters.


HebbianThresholdSynapse

public HebbianThresholdSynapse(Synapse s)
This constructor is used when creating a neuron of one type from another neuron of another type Only values common to different types of neuron are copied.

Parameters:
s - Synapse to make of the type

HebbianThresholdSynapse

public HebbianThresholdSynapse(Neuron source,
                               Neuron target)
Creates a weight connecting source and target neurons.

Parameters:
source - source neuron
target - target neuron
Method Detail

getName

public static String getName()
Returns:
Name of synapse type.

duplicate

public Synapse duplicate()
Specified by:
duplicate in class Synapse
Returns:
Duplicate synapse.

update

public void update()
Update the synapse.

Specified by:
update in class Synapse

getLearningRate

public double getLearningRate()
Returns:
Returns the momentum.

setLearningRate

public void setLearningRate(double momentum)
Parameters:
momentum - The momentum to set.

getOutputThreshold

public double getOutputThreshold()
Returns:
Returns the outputThreshold.

setOutputThreshold

public void setOutputThreshold(double outputThreshold)
Parameters:
outputThreshold - The outputThreshold to set.

getUseSlidingOutputThreshold

public boolean getUseSlidingOutputThreshold()
Returns:
Returns the useSlidingOutputThreshold.

setUseSlidingOutputThreshold

public void setUseSlidingOutputThreshold(boolean useSlidingOutputThreshold)
Parameters:
useSlidingOutputThreshold - The useSlidingOutputThreshold to set.

getOutputThresholdMomentum

public double getOutputThresholdMomentum()
Returns:
Returns the outputThresholdMomentum.

setOutputThresholdMomentum

public void setOutputThresholdMomentum(double outputThresholdMomentum)
Parameters:
outputThresholdMomentum - The outputThresholdMomentum to set.