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.
myFilteredInput, myFilteredOutput, myInput, myLearning, myLearningRate, myOriginName, myOutput
Constructor and Description |
---|
STDPTermination(Node node,
java.lang.String name,
LinearExponentialTermination[] nodeTerminations) |
Modifier and Type | Method and Description |
---|---|
PlasticEnsembleTermination |
clone() |
void |
reset(boolean randomize) |
void |
setOriginState(java.lang.String name,
InstantaneousOutput state,
float time) |
void |
updateTransform(float time,
int start,
int end) |
clone, getFilteredOutput, getInput, getLearning, getLearningRate, getOriginName, getOutputs, getTransform, modifyTransform, saveTransform, setLearning, setLearningRate, setOriginName, setTerminationState, setTransform, updateFiltered, updateRaw
getDimensions, getModulatory, getName, getNode, getNodeTerminations, getTau, setModulatory, setTau, setValues
public STDPTermination(Node node, java.lang.String name, LinearExponentialTermination[] nodeTerminations) throws StructuralException
node
- The parent Nodename
- Name of this TerminationnodeTerminations
- Node-level Terminations that make up this Termination. Must be
all LinearExponentialTerminationsStructuralException
- If dimensions of different terminations are not all the samepublic void setOriginState(java.lang.String name, InstantaneousOutput state, float time) throws StructuralException
setOriginState
in class PlasticEnsembleTermination
name
- Name of Origin from which postsynaptic activity is drawnstate
- State of named origintime
- Current timeStructuralException
- if Origin is not setpublic void reset(boolean randomize)
reset
in interface Resettable
reset
in class PlasticEnsembleTermination
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.Resettable.reset(boolean)
public void updateTransform(float time, int start, int end) throws StructuralException
updateTransform
in class PlasticEnsembleTermination
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)StructuralException
- ifpublic PlasticEnsembleTermination clone() throws java.lang.CloneNotSupportedException
clone
in interface Termination
clone
in class EnsembleTermination
java.lang.CloneNotSupportedException
- if clone can't be made