-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathParams.m
42 lines (32 loc) · 1.38 KB
/
Params.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
classdef Params < handle
% Contains all parameters that are shared between functions for later
% reference.
properties (Constant)
%% directories
basedir = ['~' filesep 'MATLAB']; % for all matlab files
outdir = [Params.basedir filesep 'MailPhys']; % specific to MailPhys
edatemp = [Params.outdir filesep 'eda_temp']; % specific to EDA preprocess
edaduplicate = [Params.edatemp filesep 'duplicate']; % specific to EDA preprocess duplicates
%% formats
sfo_p = '%02d'; % string format for participants 01, 02 ...
%% other parameters
minPeakDistance = 0.10; % minimum distance between peaks
%% shimmer
shimmer_srate = 51.2;
csvStart = 3; % indicate which row contains the first same of valid data in Shimmer csv files
% indices for EMG in Shimmer csv files
iTimestamp = 1;
iaccX = 2;
iaccY = 3;
iaccZ = 4;
iCorr = 6;
iZygo = 7;
% indices for GSR in Shimmer csv files
% 1 to 4 = identical to EMG
iGSR = 6;
%% time verification threshold (ms)
timeThresh = 50; % amount of milliseconds within which we consider a sample to be valid
% if its number of samples and time difference are off by at most
% this amount
end
end