-
Notifications
You must be signed in to change notification settings - Fork 3
/
paperMainTextFigures.m
24 lines (22 loc) · 1.33 KB
/
paperMainTextFigures.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
%-------------------------------------------------------------------------------
%% PLOT SOME EXAMPLES OF EACH CLASS:
%-------------------------------------------------------------------------------
numPerClass = 3;
TS_PlotTimeSeries('raw',numPerClass)
%-------------------------------------------------------------------------------
%% PRODUCE THE CLUSTERED CORRELATION MATRIX FOR THE TOP 40 FEATURES
%-------------------------------------------------------------------------------
theGroups = {'H','N2','dpy_20','unc_9','unc_38'}; % this is all of them.
theFiltering = 'neither'; % 'neither', 'locdep', 'lengthdep', 'both'
classVarFilter = true; % remove features with zero variance within a labeled class
[normalizedFileName,filteredFileName] = doFilter(theGroups,theFiltering,classVarFilter);
cfnParams = GiveMeDefaultClassificationParams(normalizedFileName);
cfnParams.whatClassifier = 'fast_linear';
TS_TopFeatures(filteredFileName,'classification',cfnParams,'whatPlots','cluster','numFeaturesDistr',40);
caxis([0.5,1])
%-------------------------------------------------------------------------------
%% PLOT THE MULTISCALE SAMPEN MEASURE
%-------------------------------------------------------------------------------
% The feature of interest in the figure:
featID = 2748; % multiscale SampEn
TS_SingleFeature(filteredFileName,featID,true,true);