-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChangingResultOverTime.m
More file actions
127 lines (121 loc) · 5.74 KB
/
ChangingResultOverTime.m
File metadata and controls
127 lines (121 loc) · 5.74 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
IdentitySpaceTransformation;
clusters = MakeManyHyperCubeClusters( ...
[0 0], [1 1], [3 3], [2 10], [7 2], ...
identitySpaceTransformation);
startingSpace = Space(clusters, identitySpaceTransformation, ...
"MaxDistanceWithActivationM", 10, "MaxDistanceWithActivationP", 10);
% Region1 = WeightedMotorSimplicialComplex( ...
% [0 0; 0 3; 4 3; 4 0], [1 2 3; 1 3 4], [1 1]);
% Region2 = WeightedMotorSimplicialComplex( ...
% [0 5; 0 8; 4 8; 4 5], [1 2 3; 1 3 4], [1 1]);
% Region3 = WeightedMotorSimplicialComplex( ...
% [0 10; 0 13; 4 13; 4 10], [1 2 3; 1 3 4], [1 1]);
% Region4 = WeightedMotorSimplicialComplex( ...
% [0 15; 0 18; 4 18; 4 15], [1 2 3; 1 3 4], [1 1]);
% Region5 = WeightedMotorSimplicialComplex( ...
% [4 10; 4 13; 8 13; 8 10], [1 2 3; 1 3 4], [1 1]);
% Region6 = WeightedMotorSimplicialComplex( ...
% [8 5; 8 8; 12 8; 12 5], [1 2 3; 1 3 4], [1 1]);
% Region7 = WeightedMotorSimplicialComplex( ...
% [12 0; 12 3; 16 3; 16 0], [1 2 3; 1 3 4], [1 1]);
% startingSilhouette = MotorSilhouette( ...
% [Region1 Region2 Region3 ...
% Region4 Region5 Region6 ...
% Region7]);
% exemplar = PerceptualTrajectory( ...
% [0 5 10 15 17 19 21; 0 5 10 15 10 5 0]);
Region1 = WeightedMotorSimplicialComplex( ...
[8 0; 8 3; 9.5 1.5; 11 3; 11 0], [1 2 3; 2 4 3; 4 5 3; 5 1 3], [1 1 1 1]);
Region2 = WeightedMotorSimplicialComplex( ...
[10 4; 10 7; 11.5 5.5; 13 7; 13 4], [1 2 3; 2 4 3; 4 5 3; 5 1 3], [1 1 1 1]);
Region3 = WeightedMotorSimplicialComplex( ...
[12 8; 12 11; 13.5 9.5; 15 11; 15 8], [1 2 3; 2 4 3; 4 5 3; 5 1 3], [1 1 1 1]);
Region4 = WeightedMotorSimplicialComplex( ...
[15 11; 15 14; 16.5 12.5; 18 14; 18 11], [1 2 3; 2 4 3; 4 5 3; 5 1 3], [1 1 1 1]);
Region5 = WeightedMotorSimplicialComplex( ...
[18 8; 18 11; 19.5 9.5; 21 11; 21 8], [1 2 3; 2 4 3; 4 5 3; 5 1 3], [1 1 1 1]);
Region6 = WeightedMotorSimplicialComplex( ...
[20 4; 20 7; 21.5 5.5; 23 7; 23 4], [1 2 3; 2 4 3; 4 5 3; 5 1 3], [1 1 1 1]);
Region7 = WeightedMotorSimplicialComplex( ...
[22 0; 22 3; 23.5 1.5; 25 3; 25 0], [1 2 3; 2 4 3; 4 5 3; 5 1 3], [1 1 1 1]);
startingSilhouette = MotorSilhouette( ...
[Region1 Region2 Region3 ...
Region4 Region5 Region6 ...
Region7]);
exemplar = PerceptualTrajectory( ...
[5 7 9 16.5 24 26 28; 2 6 10 16 10 6 2]);
[GoalsOverTime, ActivationsOverTime, MResultsOverTime, ...
PResultsOverTime] = LearnNewExemplarWithNoise( ...
startingSpace, startingSilhouette, exemplar, 215, 0, 0, 0);
fullFigureData1 = FullFigureDataIdentitySpacesAll( ...
GoalsOverTime(1:12), MResultsOverTime(1:12), ...
ActivationsOverTime(1:12), 0, 4, 3);
fullFigureData2 = FullFigureDataIdentitySpacesAll( ...
GoalsOverTime(13:24), MResultsOverTime(13:24), ...
ActivationsOverTime(13:24), 0, 4, 3);
fullFigureData3 = FullFigureDataIdentitySpacesAll( ...
GoalsOverTime(25:36), MResultsOverTime(25:36), ...
ActivationsOverTime(25:36), 0, 4, 3);
fullFigureData4 = FullFigureDataIdentitySpacesAll( ...
GoalsOverTime(37:48), MResultsOverTime(37:48), ...
ActivationsOverTime(37:48), 0, 4, 3);
fullFigureData5 = FullFigureDataIdentitySpacesAll( ...
GoalsOverTime(49:60), MResultsOverTime(49:60), ...
ActivationsOverTime(49:60), 0, 4, 3);
fullFigureData6 = FullFigureDataIdentitySpacesAll( ...
GoalsOverTime(61:72), MResultsOverTime(61:72), ...
ActivationsOverTime(61:72), 0, 4, 3);
fullFigureData7 = FullFigureDataIdentitySpacesAll( ...
GoalsOverTime(73:84), MResultsOverTime(73:84), ...
ActivationsOverTime(73:84), 0, 4, 3);
fullFigureData8 = FullFigureDataIdentitySpacesAll( ...
GoalsOverTime(85:96), MResultsOverTime(85:96), ...
ActivationsOverTime(85:96), 0, 4, 3);
fullFigureData9 = FullFigureDataIdentitySpacesAll( ...
GoalsOverTime(97:108), MResultsOverTime(97:108), ...
ActivationsOverTime(97:108), 0, 4, 3);
fullFigureData10 = FullFigureDataIdentitySpacesAll( ...
GoalsOverTime(109:120), MResultsOverTime(109:120), ...
ActivationsOverTime(109:120), 0, 4, 3);
fullFigureData11 = FullFigureDataIdentitySpacesAll( ...
GoalsOverTime(121:132), MResultsOverTime(121:132), ...
ActivationsOverTime(121:132), 0, 4, 3);
fullFigureData12 = FullFigureDataIdentitySpacesAll( ...
GoalsOverTime(133:144), MResultsOverTime(133:144), ...
ActivationsOverTime(133:144), 0, 4, 3);
fullFigureData13 = FullFigureDataIdentitySpacesAll( ...
GoalsOverTime(145:156), MResultsOverTime(145:156), ...
ActivationsOverTime(145:156), 0, 4, 3);
fullFigureData14 = FullFigureDataIdentitySpacesAll( ...
GoalsOverTime(157:168), MResultsOverTime(157:168), ...
ActivationsOverTime(157:168), 0, 4, 3);
fullFigureData15 = FullFigureDataIdentitySpacesAll( ...
GoalsOverTime(169:180), MResultsOverTime(169:180), ...
ActivationsOverTime(169:180), 0, 4, 3);
fullFigureData16 = FullFigureDataIdentitySpacesAll( ...
GoalsOverTime(181:192), MResultsOverTime(181:192), ...
ActivationsOverTime(181:192), 0, 4, 3);
fullFigureData17 = FullFigureDataIdentitySpacesAll( ...
GoalsOverTime(193:204), MResultsOverTime(193:204), ...
ActivationsOverTime(193:204), 0, 4, 3);
fullFigureData18 = FullFigureDataIdentitySpacesAll( ...
GoalsOverTime(205:216), MResultsOverTime(205:216), ...
ActivationsOverTime(205:216), 0, 4, 3);
fullFigureData1.PlotFigures();
fullFigureData2.PlotFigures();
fullFigureData3.PlotFigures();
fullFigureData4.PlotFigures();
fullFigureData5.PlotFigures();
fullFigureData6.PlotFigures();
fullFigureData7.PlotFigures();
fullFigureData8.PlotFigures();
fullFigureData9.PlotFigures();
fullFigureData10.PlotFigures();
fullFigureData11.PlotFigures();
fullFigureData12.PlotFigures();
fullFigureData13.PlotFigures();
fullFigureData14.PlotFigures();
fullFigureData15.PlotFigures();
fullFigureData16.PlotFigures();
fullFigureData17.PlotFigures();
fullFigureData18.PlotFigures();