This input class allows you to add stimuli in which every neuron has a unique (though constant) firing rate.
Class Name:
PatternedPoissonInputSpikingNeuronsParameter Structure:
struct poisson_input_spiking_neuron_parameters_struct { int group_shape[2]; // 2D layer size (Neuron Parameter) float rate; // Default Population Firing Rates (Poisson Neuron Parameter)}To add an input stimulus, there is a method which accepts a vector and returns the stimulus ID:
int PatternedPoissonInputSpikingNeurons::add_stimulus(vector<float> rates);Note that the size of your stimulus should be equivalent to the number of input neurons you have TOTAL.
To set the current input stimulus:
int PatternedPoissonInputSpikingNeurons::set_stimulus(int stimulus_ID);