-
Notifications
You must be signed in to change notification settings - Fork 0
/
parameters.h
68 lines (58 loc) · 1.65 KB
/
parameters.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#ifndef _PARAMETERS_H
#define _PARAMETERS_H 1
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#define MAX_CHARS 200
/* const int MAX_CHARS = 200; I'd like this but doesn't work */
typedef struct Parameters Parameters;
typedef struct Sgmoid_pars Sgmoid_pars;
typedef struct Connectivity_pars Connectivity_pars;
typedef struct Input_pars Input_pars;
struct Sgmoid_pars {
double max_rate;
double beta;
double thr;
};
struct Connectivity_pars {
double J_E;
double J_I;
double m_E;
double m_I;
};
struct NegFeedback_pars {
/* Adaptation variables */
double J_A; /* This var acts as a flag as well */
double tau_A;
/* Short term synaptic plasticity */
bool facilitation_f; /* flag */
bool depression_f; /* flag */
double U; /* Utilization factor */
double tau_F; /* Facilitation timescale */
double tau_D; /* Depression timescale */
};
struct Parameters {
char output_rate_file[MAX_CHARS];
char output_adaptation_file[MAX_CHARS];
char output_depression_file[MAX_CHARS];
char output_facilitation_file[MAX_CHARS];
char extinputs_file[MAX_CHARS];
char conf_file[MAX_CHARS];
_Bool normalize;
_Bool verbose;
int N1;
int N2;
int N;
int N_layers;
double T; /* simulation time */
double dt;
struct Sgmoid_pars sgmoid;
struct NegFeedback_pars negfbck;
struct Connectivity_pars kernel; /* Lateral connectivity */
struct Connectivity_pars ff_kernel; /* Forward connectivity */
};
int handler(void *, const char *, const char *);
void init_parameters(struct Parameters *);
void show_parameters(void *);
#endif