CARLsim
5.0.0
CARLsim: a GPU-accelerated SNN simulator
|
Go to the documentation of this file.
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);
void setRates(float rate)
Assigns the same mean firing rate to all neurons.
float * getRatePtrCPU()
Returns pointer to CPU-allocated firing rate array (deprecated)
Class for generating Poisson spike trains.
int getNumNeurons()
Returns the number of neurons for which to generate Poisson spike trains.
float getRate(int neurId)
Returns the mean firing rate of a specific neuron ID.
~PoissonRate()
PoissonRate destructor.
void setRate(int neurId, float rate)
Sets the mean firing rate of a particular neuron ID.
PoissonRate(int nNeur, bool onGPU=false)
PoissonRate constructor.
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)
bool isOnGPU()
Checks whether the firing rates are allocated on CPU or GPU.