-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgetPointsInIntervals.m
More file actions
51 lines (29 loc) · 1.51 KB
/
getPointsInIntervals.m
File metadata and controls
51 lines (29 loc) · 1.51 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
function points = getPointsInIntervals(TargetNumberTot,ParamTot,HowDivisionTot,fileName)
load(fileName);
topParam1 = TargetNumberTot(2)/1;
topParam2 = ParamTot(2);
points_00_30 = zeros(1,HowDivisionTot(2));
points_30_60 = zeros(1,HowDivisionTot(2));
points_60_75 = zeros(1,HowDivisionTot(2));
points_75_100 = zeros(1,HowDivisionTot(2));
for how = HowDivisionTot(1) : HowDivisionTot(2)
val_3 = AveragesTaskDivisions.AverageMetrics_ContTime(:,:,how);
val_3 = val_3 * 100 / 60;
for rows = 1 : 50
for cols = 1 : 4
if val_3(rows,cols) <= 30
points_00_30(1,how) = points_00_30(1,how) + 1 ;
elseif val_3(rows,cols) > 30 && val_3(rows,cols)<= 60
points_30_60(1,how) = points_30_60(1,how) + 1 ;
elseif val_3(rows,cols) > 60 && val_3(rows,cols)<= 75
points_60_75(1,how) = points_60_75(1,how) + 1 ;
elseif val_3(rows,cols) > 75
points_75_100(1,how) = points_75_100(1,how) + 1 ;
end
end
end
points.below30percent = points_00_30/(topParam1*topParam2) * 100;
points.between30and60percent = points_30_60/(topParam1*topParam2) * 100;
points.between60and75percent = points_60_75/(topParam1*topParam2) * 100;
points.above75percent = points_75_100/(topParam1*topParam2) * 100;
end