public class SpikePatternImpl extends java.lang.Object implements SpikePattern
Constructor and Description |
---|
SpikePatternImpl(int neurons) |
Modifier and Type | Method and Description |
---|---|
void |
addSpike(int neuron,
float time) |
SpikePattern |
clone() |
int |
getNumNeurons() |
float[] |
getSpikeTimes(int neuron) |
public SpikePatternImpl(int neurons)
neurons
- Number of neurons in the Ensemble that this SpikePattern belongs topublic void addSpike(int neuron, float time)
neuron
- Index of neurontime
- Spike timepublic int getNumNeurons()
getNumNeurons
in interface SpikePattern
SpikePattern.getNumNeurons()
public float[] getSpikeTimes(int neuron)
getSpikeTimes
in interface SpikePattern
neuron
- Index of a neuron in the ensemble (from 0)SpikePattern.getSpikeTimes(int)
public SpikePattern clone() throws java.lang.CloneNotSupportedException
clone
in interface SpikePattern
clone
in class java.lang.Object
java.lang.CloneNotSupportedException