|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectca.nengo.math.impl.AbstractFunction
ca.nengo.model.plasticity.impl.AbstractSpikeLearningFunction
public abstract class AbstractSpikeLearningFunction
Defines the input available to a spike-based learning rule function.
| Field Summary | |
|---|---|
protected float |
myLearningRate
|
| Fields inherited from class ca.nengo.math.impl.AbstractFunction |
|---|
DIMENSION_PROPERTY |
| Constructor Summary | |
|---|---|
AbstractSpikeLearningFunction()
Ensures that the function is of the correct dimension. |
|
| Method Summary | |
|---|---|
void |
afterDOmega(boolean[] spiking)
A function that is called after deltaOmega is evaluated. |
void |
beforeDOmega(boolean[] spiking)
A function that is called before deltaOmega is evaluated. |
AbstractSpikeLearningFunction |
clone()
|
protected abstract float |
deltaOmega(float timeSinceDifferent,
float timeSinceSame,
float currentWeight,
float modInput,
int postIndex,
int preIndex,
int dim)
A learning rule that defines how the connection weight changes when a particular spike happens (either presynaptic spike or postsynaptic). |
float |
getLearningRate()
|
void |
initActivityTraces(int postLength,
int preLength)
Initializes activity traces in the rule, if any exist. |
float |
map(float[] from)
Calls deltaOmega. |
void |
setLearningRate(float rate)
|
| Methods inherited from class ca.nengo.math.impl.AbstractFunction |
|---|
getDimension, multiMap |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected float myLearningRate
| Constructor Detail |
|---|
public AbstractSpikeLearningFunction()
| Method Detail |
|---|
public float map(float[] from)
map in interface Functionmap in class AbstractFunctionfrom - Must have same length as getDimension()
Function.map(float[])
protected abstract float deltaOmega(float timeSinceDifferent,
float timeSinceSame,
float currentWeight,
float modInput,
int postIndex,
int preIndex,
int dim)
timeSinceDifferent - The amount of time passed since the last spike
of the different type -- that is, if this is an onInSpike function, it would
be the amount of time since the last out spiketimeSinceSame - The amount of time passed since the last spike
of the same type -- that is, if this is an onInSpike function, it would
be the amount of time since the last in spikecurrentWeight - The current connection weight between the pre and post neuronsmodInput - The modulatory input, for this particular dimension (see dim)postIndex - The neuron index in the post-synaptic populationpreIndex - The neuron index in the pre-synaptic populationdim - The dimension of the modulatory inputpublic void beforeDOmega(boolean[] spiking)
spiking - An array representing whether or not neurons in the
population of interest are spiking.public void afterDOmega(boolean[] spiking)
spiking - An array representing whether or not neurons in the
population of interest are spiking.
public void initActivityTraces(int postLength,
int preLength)
public AbstractSpikeLearningFunction clone()
throws java.lang.CloneNotSupportedException
clone in interface Functionclone in class AbstractFunctionjava.lang.CloneNotSupportedExceptionObject.clone()public void setLearningRate(float rate)
rate - New learning ratepublic float getLearningRate()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||