|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectca.nengo.model.plasticity.impl.SpikePlasticityRule
public class SpikePlasticityRule
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.
| Constructor Summary | |
|---|---|
SpikePlasticityRule(AbstractSpikeLearningFunction onInSpike,
AbstractSpikeLearningFunction onOutSpike,
java.lang.String originName,
java.lang.String modTermName)
|
|
| Method Summary | |
|---|---|
PlasticityRule |
clone()
|
float[][] |
getDerivative(float[][] transform,
InstantaneousOutput input,
float time)
|
java.lang.String |
getModTermName()
|
AbstractSpikeLearningFunction |
getOnInSpike()
|
AbstractSpikeLearningFunction |
getOnOutSpike()
|
java.lang.String |
getOriginName()
|
void |
reset(boolean randomize)
|
void |
setDecaying(boolean decaying)
|
void |
setDecayScale(float decayScale)
|
void |
setHomestatic(boolean homeostatic)
|
void |
setModTerminationState(java.lang.String name,
InstantaneousOutput state,
float time)
Provides potentially modulatory input to the rule. |
void |
setModTermName(java.lang.String name)
|
void |
setOnInSpike(AbstractSpikeLearningFunction function)
|
void |
setOnOutSpike(AbstractSpikeLearningFunction function)
|
void |
setOriginName(java.lang.String name)
|
void |
setOriginState(java.lang.String name,
InstantaneousOutput state,
float time)
Provides state or functional output, which may serve as an indication of postsynaptic activity (used in Hebbian learning). |
void |
setStableVal(float weightPerNeuron)
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpikePlasticityRule(AbstractSpikeLearningFunction onInSpike,
AbstractSpikeLearningFunction onOutSpike,
java.lang.String originName,
java.lang.String modTermName)
onInSpike - AbstractSpikeLearningFunction defining synaptic weight change when there is an onOutSpike - AbstractSpikeLearningFunction defining synaptic weight change when there is an originName - Name of Origin from which post-synaptic activity is drawnmodTerm - Name of the Termination from which modulatory input is drawn (can be null if not used)| Method Detail |
|---|
public void reset(boolean randomize)
reset in interface Resettablerandomize - 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 setDecaying(boolean decaying)
public void setDecayScale(float decayScale)
public void setHomestatic(boolean homeostatic)
public void setStableVal(float weightPerNeuron)
public java.lang.String getOriginName()
public void setOriginName(java.lang.String name)
name - Name of Origin from which post-synaptic activity is drawnpublic java.lang.String getModTermName()
public void setModTermName(java.lang.String name)
name - Name of the Termination from which modulatory input is drawn (can be null if not used)public AbstractSpikeLearningFunction getOnInSpike()
public void setOnInSpike(AbstractSpikeLearningFunction function)
function - Function defining synaptic weight change when there is an public AbstractSpikeLearningFunction getOnOutSpike()
public void setOnOutSpike(AbstractSpikeLearningFunction function)
function - Function defining synaptic weight change when there is an
public void setOriginState(java.lang.String name,
InstantaneousOutput state,
float time)
PlasticityRule
setOriginState in interface PlasticityRulename - The name of a DecodedOrigin from the ensemblestate - The present value of output from the named Origintime - Simulation time at which state arrives at site of plasticityPlasticityRule.setOriginState(java.lang.String, ca.nengo.model.InstantaneousOutput, float)
public void setModTerminationState(java.lang.String name,
InstantaneousOutput state,
float time)
PlasticityRule
setModTerminationState in interface PlasticityRulename - The name of a DecodedTermination onto the ensemblestate - The present value of output from the named Termination (may differ
from its input in terms of dynamics and dimension)time - Simulation time at which state arrives at site of plasticityca.nengo.model.plasticity.PlasticityRule#setTerminationState(java.lang.String, ca.nengo.model.InstantaneousOutput, float)
public float[][] getDerivative(float[][] transform,
InstantaneousOutput input,
float time)
getDerivative in interface PlasticityRuletransform - The present transformation matrix of a Terminationinput - The present input to the Terminationtime - Simulation time at which input arrives at site of plasticity
PlasticityRule.getDerivative(float[][], ca.nengo.model.InstantaneousOutput, float)
public PlasticityRule clone()
throws java.lang.CloneNotSupportedException
clone in interface PlasticityRuleclone in class java.lang.Objectjava.lang.CloneNotSupportedException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||