42 #ifndef _POISSON_RATE_H_ 43 #define _POISSON_RATE_H_ 174 void setRate(
int neurId,
float rate);
194 void setRates(
const std::vector<float>& rates);
Class for generating Poisson spike trains.
void setRates(float rate)
Assigns the same mean firing rate to all neurons.
std::vector< float > getRates()
Returns a vector of firing rates, one element per neuron.
float * getRatePtrGPU()
Returns pointer to GPU-allocated firing rate array (deprecated)
float * getRatePtrCPU()
Returns pointer to CPU-allocated firing rate array (deprecated)
float getRate(int neurId)
Returns the mean firing rate of a specific neuron ID.
~PoissonRate()
PoissonRate destructor.
int getNumNeurons()
Returns the number of neurons for which to generate Poisson spike trains.
void setRate(int neurId, float rate)
Sets the mean firing rate of a particular neuron ID.
PoissonRate(int nNeur, bool onGPU=false)
PoissonRate constructor.
bool isOnGPU()
Checks whether the firing rates are allocated on CPU or GPU.