Nengo.ca

ca.nengo.model.plasticity.impl
Class PreLearnTermination

java.lang.Object
  extended by ca.nengo.model.impl.EnsembleTermination
      extended by ca.nengo.model.plasticity.impl.PlasticEnsembleTermination
          extended by ca.nengo.model.plasticity.impl.ModulatedPlasticEnsembleTermination
              extended by 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

Field Summary
 
Fields inherited from class ca.nengo.model.plasticity.impl.ModulatedPlasticEnsembleTermination
myModInput, myModTermName
 
Fields inherited from class ca.nengo.model.plasticity.impl.PlasticEnsembleTermination
myLearning, myLearningRate, myOriginName, myOutput
 
Constructor Summary
PreLearnTermination(NEFEnsemble ensemble, java.lang.String name, PlasticNodeTermination[] nodeTerminations)
           
 
Method Summary
 PreLearnTermination clone()
           
 void reset(boolean randomize)
           
 void updateTransform(float time, int start, int end)
           
 
Methods inherited from class ca.nengo.model.plasticity.impl.ModulatedPlasticEnsembleTermination
clone, getModTermName, setModTerminationState, setModTermName
 
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 ca.nengo.model.impl.EnsembleTermination
getDimensions, getModulatory, getName, getNode, getNodeTerminations, getTau, setModulatory, setTau, setValues
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreLearnTermination

public PreLearnTermination(NEFEnsemble ensemble,
                           java.lang.String name,
                           PlasticNodeTermination[] nodeTerminations)
                    throws StructuralException
Parameters:
ensemble - The ensemble this termination belongs to
name - Name of this Termination
nodeTerminations - Node-level Terminations that make up this Termination. Must be all LinearExponentialTerminations
Throws:
StructuralException - If dimensions of different terminations are not all the same
Method Detail

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 time
start - 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

Nengo.ca