ca.nengo.model.plasticity.impl
Class STDPTermination
java.lang.Object
ca.nengo.model.impl.EnsembleTermination
ca.nengo.model.plasticity.impl.PlasticEnsembleTermination
ca.nengo.model.plasticity.impl.STDPTermination
- All Implemented Interfaces:
- Resettable, Termination, java.io.Serializable, java.lang.Cloneable
public class STDPTermination
- extends PlasticEnsembleTermination
A PlasticTermination implementing a PlasticityRule that accepts spiking input.
Spiking input must be dealt with in order to run learning rules in
a spiking SimulationMode. Spiking input is also the only way to simulate spike-timing-dependent
plasticity.
- See Also:
- Serialized Form
| Methods inherited from class ca.nengo.model.plasticity.impl.PlasticEnsembleTermination |
getInput, getLearning, getLearningRate, getOriginName, getOutputs, getTransform, saveTransform, setLearning, setLearningRate, setOriginName, setTransform |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STDPTermination
public STDPTermination(Node node,
java.lang.String name,
LinearExponentialTermination[] nodeTerminations)
throws StructuralException
- Parameters:
node - The parent Nodename - Name of this TerminationnodeTerminations - Node-level Terminations that make up this Termination. Must be
all LinearExponentialTerminations
- Throws:
StructuralException - If dimensions of different terminations are not all the same
setOriginState
public void setOriginState(java.lang.String name,
InstantaneousOutput state,
float time)
throws StructuralException
- Overrides:
setOriginState in class PlasticEnsembleTermination
- Parameters:
name - Name of Origin from which postsynaptic activity is drawnstate - State of named origintime - Current time
- Throws:
StructuralException - if Origin is not set
reset
public void reset(boolean randomize)
- Specified by:
reset in interface Resettable- Overrides:
reset in class PlasticEnsembleTermination
- Parameters:
randomize - True indicates that the object should be reset to a
randomly selected initial state (the object must be aware of the
distribution from which to draw from). False indicates that the
object should be reset to a fixed initial state (which it must
also know). Some objects may not support randomization of the initial
state, in which case a fixed state will be used in either case.- See Also:
Resettable.reset(boolean)
updateTransform
public void updateTransform(float time,
int start,
int end)
throws StructuralException
- Specified by:
updateTransform in class PlasticEnsembleTermination
- Parameters:
time - Current timestart - The start index of the range of transform values to update (for multithreading)end - The end index of the range of transform values to update (for multithreading)
- Throws:
StructuralException - if
clone
public PlasticEnsembleTermination clone()
throws java.lang.CloneNotSupportedException
- Specified by:
clone in interface Termination- Overrides:
clone in class PlasticEnsembleTermination
- Returns:
- Valid clone
- Throws:
java.lang.CloneNotSupportedException - if clone can't be made