1
#ifndef CALCIUM_LGN_NEURON_H
2
#define CALCIUM_LGN_NEURON_H
7
// Subclass of annarNeuron: leaky integrator with positive transfer function
8
class CalciumLGNNeuron : public annarNeuron
12
CalciumLGNNeuron(class annarPopulation* population, int rank): annarNeuron(population, rank){
21
// Update the membrane potential
22
//mp_+= (input_-mp_) * 1/tau_;
23
mp_+= (sum("FF")-mp_) * 1/tau_;
25
// Update the instantaneous firing rate
26
rate_=(positive(mp_));
28
// Update the calcium trace
29
ca_+=(rate_-ca_) * 1/ca_tau_;
35
//@VARIABLE FLOAT input_;
1
#ifndef CALCIUM_LGN_NEURON_H
2
#define CALCIUM_LGN_NEURON_H
7
// Subclass of annarNeuron: leaky integrator with positive transfer function
8
class CalciumLGNNeuron : public annarNeuron
12
CalciumLGNNeuron(class annarPopulation* population, int rank): annarNeuron(population, rank){
17
mean_rate_=0; // Used for axon growth/retraction
23
// Update the membrane potential
24
//mp_+= (input_-mp_) * 1/tau_;
25
mp_+= (sum("FF")-mp_) * 1/tau_;
27
// Update the instantaneous firing rate
28
rate_=(positive(mp_));
30
// Update mean firing rate
31
mean_rate_ += (rate_-mean_rate_) *(1/mean_rate_tau_);
33
// Update the calcium trace
34
ca_+=(rate_-ca_) * 1/ca_tau_;
39
@PARAMETER FLOAT mean_rate_tau_;
41
@VARIABLE FLOAT mean_rate_;
42
//@VARIABLE FLOAT input_;