ca.nengo.model.plasticity.impl
Class PreLearnTermination
java.lang.Object
ca.nengo.model.impl.EnsembleTermination
ca.nengo.model.plasticity.impl.PlasticEnsembleTermination
ca.nengo.model.plasticity.impl.ModulatedPlasticEnsembleTermination
ca.nengo.model.plasticity.impl.PreLearnTermination
- All Implemented Interfaces:
- Resettable, Termination, java.io.Serializable, java.lang.Cloneable
public class PreLearnTermination
- extends ModulatedPlasticEnsembleTermination
A termination that learns only on presynaptic spikes.
- See Also:
- Serialized Form
Methods inherited from class ca.nengo.model.plasticity.impl.PlasticEnsembleTermination |
getInput, getLearning, getLearningRate, getOriginName, getOutputs, getTransform, saveTransform, setLearning, setLearningRate, setOriginName, setOriginState, setTransform |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PreLearnTermination
public PreLearnTermination(NEFEnsemble ensemble,
java.lang.String name,
PlasticNodeTermination[] nodeTerminations)
throws StructuralException
- Parameters:
ensemble
- The ensemble this termination belongs toname
- 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
reset
public void reset(boolean randomize)
- Specified by:
reset
in interface Resettable
- Overrides:
reset
in class ModulatedPlasticEnsembleTermination
- 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- See Also:
PlasticEnsembleTermination.updateTransform(float, int, int)
clone
public PreLearnTermination clone()
throws java.lang.CloneNotSupportedException
- Specified by:
clone
in interface Termination
- Overrides:
clone
in class EnsembleTermination
- Returns:
- Valid clone
- Throws:
java.lang.CloneNotSupportedException
- if clone can't be made