Repository navigation
Expand file tree
/
Copy pathmake_manifold.m
More file actions
46 lines (32 loc) · 16.2 KB
/
Copy pathmake_manifold.m
File metadata and controls
46 lines (32 loc) · 16.2 KB
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
osc_full = [1,0,0,0;1,0,0,0;1,0,0,0;1,0,0,0;1,0,0,0;1,0,0,0;1,0,0,0;1,0,0,0;1,0,0,0;1,0,0,0;1,0,0,0;1,0,0,0;1,0,0,0;1,0,0,0;1,0,0,0;1,0,0,0;1,0,0,0;1,0,0,0;0,0,0,1;0,0,0,1;0,0,0,1;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,0,1,0;0,0,0,1;0,0,0,1;0,0,0,1;0,1,0,0;0,1,0,0;0,1,0,0;0,0,1,0;0,0,1,0;0,0,1,0;0,0,1,0;0,0,1,0;0,0,1,0;0,0,0,1;0,0,0,1;0,0,0,1;0,0,0,1;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,0,1,0;0,0,1,0;0,0,1,0;0,0,1,0;0,0,0,1;0,0,0,1;0,0,0,1;0,0,0,1;0,0,0,1;0,0,0,1;0,0,1,0;0,0,1,0;0,0,1,0;0,0,1,0;0,0,1,0;0,0,1,0;0,0,0,1;0,0,0,1;0,0,0,1;0,0,0,1;0,0,0,1;0,0,0,1;0,0,1,0;0,0,1,0;0,0,1,0;0,0,1,0;0,0,1,0;0,0,1,0;0,0,1,0;0,0,0,1;0,0,0,1;0,0,0,1;0,0,0,1;0,0,0,1;0,0,0,1;0,0,1,0;0,0,1,0;0,0,1,0;0,0,1,0;0,0,1,0;1,0,0,0;1,0,0,0;1,0,0,0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;0,0,0,1;0,0,0,1;0,0,0,1;0,0,0,1;0,0,0,1;0,0,0,1;0,0,0,1;0,0,0,1;0,0,0,1;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,1,0,0;0,0,1,0;0,0,1,0;0,0,1,0;0,0,1,0;1,0,0,0;1,0,0,0;1,0,0,0;1,0,0,0;1,0,0,0;1,0,0,0;1,0,0,0;1,0,0,0;1,0,0,0];
osc_diff(1,:) = osc_full(1,:)
osc_diff(2:1940,:) = diff(osc_full);
for x = 1:4
I = find(osc_diff(:,x));
if rem(length(I), 2) == 1
I(size(I,1),:) = [];
end
I_start = I(1:2:end);
I_end = I(2:2:end);
nI = size(I_start,1);
for n = 1:nI
temp = score11(I_start(n):I_end(n),1:5);
nTemp = size(temp,1);
score_osc(1:nTemp,:,n,x,i) = temp;
size_score_osc_high(n,x,i) = nTemp;
end
sprintf('%d',x)
end
for y = 1:5 % top 10 PCs
for x = 1:4 % # of states
for n = 1:30 % # of examples
if size_score_osc_high(n,x,i) > 0
newYvalsH(:,n,y,x,i) = interp1(1:1:size_score_osc_high(n,x,i), score_osc(1:size_score_osc_high(n,x,i),y,n,x,i), linspace(1,size_score_osc_high(n,x,i),50));
else
newYvalsH(:,n,y,x,i) = NaN;
end
end
end
sprintf('%d',y)
end
manifold = squeeze(nanmean(nanmean(newYvalsH,2),5));