-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.m
47 lines (41 loc) · 2.02 KB
/
constants.m
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
%% Constants
% Paths
global SOFTWARE_PATH DATA_PATH;
SOFTWARE_PATH = 'D:\dev\alon_data\code\';
DATA_PATH = 'D:\dev\alon_data\data\';
addpath([SOFTWARE_PATH 'crcns-hc2-scripts']);
addpath([SOFTWARE_PATH 'custom_scripts']);
load('mouse_by_electrode_brain_region');
% Data extraction
global BEHAVIORAL_SAMPLE_RATE NEURONAL_SAMPLE_RATE BEHAVIORAL_SAMPLES_PER_TEMPORAL_BIN ...
NUMBER_OF_ANGLE_BINS NUMBER_OF_ESTIMATED_ANGLE_BINS CENTER_OF_ANGLE_BINS NUMBER_OF_ANGULAR_VELOCITY_BINS ...
MAX_ANGULAR_VELOCITY MIN_ANGULAR_VELOCITY CENTER_OF_ANGULAR_VELOCITY_BINS ...
TEMPORAL_TIME_BIN SAMPLE_LIMIT INCLUDE_UNIDENTIFIED_ANGLES;
BEHAVIORAL_SAMPLE_RATE = 39.0625; % Hz
NEURONAL_SAMPLE_RATE = 20000; %Hz
BEHAVIORAL_SAMPLES_PER_TEMPORAL_BIN = 4; %for now, we use only integer number of samples
NUMBER_OF_ANGLE_BINS = 40;
NUMBER_OF_ESTIMATED_ANGLE_BINS = 40;
CENTER_OF_ANGLE_BINS = [0.5 * (2 * pi) / NUMBER_OF_ANGLE_BINS:...
(2 * pi) / NUMBER_OF_ANGLE_BINS:...
2 * pi - 0.5 * (2 * pi) / NUMBER_OF_ANGLE_BINS];
NUMBER_OF_ANGULAR_VELOCITY_BINS = 16;
MAX_ANGULAR_VELOCITY = 0.25;
MIN_ANGULAR_VELOCITY = -0.25;
CENTER_OF_ANGULAR_VELOCITY_BINS = [MIN_ANGULAR_VELOCITY:...
(MAX_ANGULAR_VELOCITY - MIN_ANGULAR_VELOCITY) / (NUMBER_OF_ANGULAR_VELOCITY_BINS - 1):...
MAX_ANGULAR_VELOCITY];
TEMPORAL_TIME_BIN = BEHAVIORAL_SAMPLES_PER_TEMPORAL_BIN / BEHAVIORAL_SAMPLE_RATE;
SAMPLE_LIMIT = 20000;
% TODO: Notice that if we choose not to include these angles we get
% incorrect results by the decoder because of some delay in the decoded
% angles compared to the actual angle.
INCLUDE_UNIDENTIFIED_ANGLES = true;
% Head directionality criterion (find_head_direction_neurons.m)
global FIRING_RATE_THRESHOLD RAYLEIGH_VECTOR_LENGTH_THRESHOLD;
FIRING_RATE_THRESHOLD = 5; % Hz
RAYLEIGH_VECTOR_LENGTH_THRESHOLD = 0.5;
% LEM
global P_NEIGHBORS_VEC NUMBER_OF_REDUCED_DIMENSIONS_VEC;
P_NEIGHBORS_VEC = [0.075 / 30 0.075];
NUMBER_OF_REDUCED_DIMENSIONS_VEC = [10 10];