Nengo.ca

ca.nengo.model.impl
Class PreciseSpikeOutputImpl

java.lang.Object
  extended by ca.nengo.model.impl.PreciseSpikeOutputImpl
All Implemented Interfaces:
InstantaneousOutput, PreciseSpikeOutput, SpikeOutput, java.io.Serializable, java.lang.Cloneable

public class PreciseSpikeOutputImpl
extends java.lang.Object
implements PreciseSpikeOutput

A class for representing precise spike times. Does this mean spike times between timesteps?

See Also:
Serialized Form

Constructor Summary
PreciseSpikeOutputImpl(float[] spikeTimes, Units units, float time)
           
 
Method Summary
 PreciseSpikeOutput clone()
           
 int getDimension()
           
 float[] getSpikeTimes()
           
 float getTime()
           
 Units getUnits()
           
 boolean[] getValues()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreciseSpikeOutputImpl

public PreciseSpikeOutputImpl(float[] spikeTimes,
                              Units units,
                              float time)
Parameters:
spikeTimes - @see #getSpikeTimes()
units - @see #getUnits()
time - @see #getTime()
Method Detail

getSpikeTimes

public float[] getSpikeTimes()
Specified by:
getSpikeTimes in interface PreciseSpikeOutput
Returns:
The times when the spikes occurred, as offsets from the previous time step. Values negative values indicate no spike.
See Also:
PreciseSpikeOutput.getSpikeTimes()

getValues

public boolean[] getValues()
Specified by:
getValues in interface SpikeOutput
Returns:
Instantaneous output in spiking channels (true means spike; false means no spike).
See Also:
SpikeOutput.getValues()

getUnits

public Units getUnits()
Specified by:
getUnits in interface InstantaneousOutput
Returns:
Units in which output is expressed.
See Also:
InstantaneousOutput.getUnits()

getDimension

public int getDimension()
Specified by:
getDimension in interface InstantaneousOutput
Returns:
Dimension of output
See Also:
InstantaneousOutput.getDimension()

getTime

public float getTime()
Specified by:
getTime in interface InstantaneousOutput
Returns:
Time at which output is produced.
See Also:
InstantaneousOutput.getTime()

clone

public PreciseSpikeOutput clone()
                         throws java.lang.CloneNotSupportedException
Specified by:
clone in interface InstantaneousOutput
Overrides:
clone in class java.lang.Object
Returns:
Valid clone
Throws:
java.lang.CloneNotSupportedException - if clone can't be made

Nengo.ca