ca.nengo.model.plasticity.impl
Class AbstractSpikeLearningFunction

java.lang.Object
  extended by ca.nengo.math.impl.AbstractFunction
      extended by ca.nengo.model.plasticity.impl.AbstractSpikeLearningFunction
All Implemented Interfaces:
Function, java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
InSpikeErrorFunction, OutSpikeErrorFunction

public abstract class AbstractSpikeLearningFunction
extends AbstractFunction

Defines the input available to a spike-based learning rule function.

Author:
Trevor Bekolay
See Also:
Serialized Form

Field Summary
 
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
 AbstractSpikeLearningFunction clone()
           
 float map(float[] from)
          Calls deltaOmega.
 
Methods inherited from class ca.nengo.math.impl.AbstractFunction
getDimension, multiMap
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSpikeLearningFunction

public AbstractSpikeLearningFunction()
Ensures that the function is of the correct dimension.

Method Detail

map

public float map(float[] from)
Calls deltaOmega.

Specified by:
map in interface Function
Specified by:
map in class AbstractFunction
Parameters:
from - Must have same length as getDimension()
Returns:
result of function operation on arg
See Also:
Function.map(float[])

clone

public AbstractSpikeLearningFunction clone()
                                    throws java.lang.CloneNotSupportedException
Specified by:
clone in interface Function
Overrides:
clone in class AbstractFunction
Throws:
java.lang.CloneNotSupportedException
See Also:
Object.clone()