This input class allows you to add stimuli in which you specify specific times at which particular neurons in the layer fill fire.
Class Name:
GeneratorInputSpikingNeurons
Parameter Structure:
struct poisson_input_spiking_neuron_parameters_struct {
int group_shape[2]; // 2D layer size (Neuron Parameter)
}
To add an input stimulus, there is a method which accepts vectors and returns the stimulus ID:
int GeneratorInputSpikingNeurons::add_stimulus(vector<int> ids, vector<float> spiketimes);
In this case, the ids vector should be a list of neuron ids (between zero and < the total number of input neurons) and each of these ids should have a corresponding time in the spiketimes list.
I.e. The ids and spiketimes vectors should be the same length. The same neuron id can come up as often as you wish.
To set the current input stimulus:
int GeneratorInputSpikingNeurons::set_stimulus(int stimulus_ID);