-
Notifications
You must be signed in to change notification settings - Fork 1
/
cl_LIFNeuron.h
40 lines (30 loc) · 960 Bytes
/
cl_LIFNeuron.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef CL_LIFNEURON_H_
#define CL_LIFNEURON_H_
#include "GeneralIncludes.h"
typedef struct LIFNeuron{
float * V;
float * I;
float * gauss;
unsigned int * time_since_spike;
//new, for ISI recorder
unsigned int * time_of_last_spike;
unsigned int * no_outgoing_synapses;
unsigned int * no_outgoing_ee_synapses;
signed int ** outgoing_synapse_index;
unsigned int * no_incoming_synapses;
signed int ** incoming_synapse_index;
float v_rest;
float v_reset;
float v_threshold;
float tau_m;
//float r_m;
//float c_m;
float sigma;
float refrac_time; //TODO: why is this a float? I think it was as I wasn't sure whether to use timesteps or seconds here.
float dt;
unsigned int no_lifs;
unsigned int time_step; // required for the random123 number generator
unsigned int random123_seed;
//unsigned char * subpopulation_flag; // manipulations will be performed on this population
} cl_LIFNeuron;
#endif /*CL_LIFNEURON_H_*/