|
||||||||||
| 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 firing-rate-based learning rules in a spiking SimulationMode. Spiking input is also the only way to simulate spike-timing-dependent plasticity.
| Constructor Summary | |
|---|---|
SpikePlasticityRule(java.lang.String origin,
java.lang.String modTerm,
int modTermDim,
Function onInSpike,
Function onOutSpike,
int termDim,
int originDim)
|
|
| Method Summary | |
|---|---|
PlasticityRule |
clone()
|
float[][] |
getDerivative(float[][] transform,
InstantaneousOutput input,
float time)
|
int |
getModTermDim()
|
java.lang.String |
getModTermName()
|
Function |
getOnInSpike()
|
Function |
getOnOutSpike()
|
int |
getOriginDim()
|
java.lang.String |
getOriginName()
|
int |
getTermDim()
|
void |
setModTermDim(int dim)
|
void |
setModTermName(java.lang.String name)
|
void |
setOnInSpike(Function function)
|
void |
setOnOutSpike(Function function)
|
void |
setOriginDim(int dim)
|
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 |
setTermDim(int dim)
|
void |
setTerminationState(java.lang.String name,
InstantaneousOutput state,
float time)
Provides potentially modulatory input to the rule. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpikePlasticityRule(java.lang.String origin,
java.lang.String modTerm,
int modTermDim,
Function onInSpike,
Function onOutSpike,
int termDim,
int originDim)
origin - 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)modTermDim - Dimension index of the modulatory input within above TerminationonInSpike - Function defining synaptic weight change when there is an onOutSpike - Function defining synaptic weight change when there is an termDim - Dimension of Termination this rule applies tooriginDim - Dimension of post-synaptic activity (eg number of neurons if rule belongs to an Ensemble)| Method Detail |
|---|
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 int getModTermDim()
public void setModTermDim(int dim)
dim - Dimension index of the modulatory input within above Terminationpublic Function getOnInSpike()
public void setOnInSpike(Function function)
function - Function defining synaptic weight change when there is an public Function getOnOutSpike()
public void setOnOutSpike(Function function)
function - Function defining synaptic weight change when there is an public int getTermDim()
public void setTermDim(int dim)
dim - Dimension of Termination this rule applies topublic int getOriginDim()
public void setOriginDim(int dim)
dim - Dimension of post-synaptic activity (eg number of neurons if rule belongs to an Ensemble)
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 setTerminationState(java.lang.String name,
InstantaneousOutput state,
float time)
PlasticityRule
setTerminationState 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 plasticityPlasticityRule.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 | |||||||||