-
Notifications
You must be signed in to change notification settings - Fork 1
/
meanTest.m
48 lines (38 loc) · 1.14 KB
/
meanTest.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
43
44
45
46
47
48
totalLength = zeros(90024,1);
for i = 1 : 90024
load(['test', int2str(i), '.mat']);
totalLength(i) = recording(end,1);
assert(recording(1,1)==0);
end
std(totalLength)
mean(totalLength)
%[IDX2, C2] = kmeans(totalLength,2);
%[IDX3, C3] = kmeans(totalLength,3);
%{
newTotalLength = totalLength(find(abs(zscore(totalLength))<=2));
std(newTotalLength)
mean(newTotalLength)
newTotalLength = newTotalLength(find(abs(zscore(newTotalLength))<=2));
std(newTotalLength)
mean(newTotalLength)
%}
%{
newTotalLength = totalLength(find(abs(zscore(totalLength))<=1.5));
std(newTotalLength)
mean(newTotalLength)
newTotalLength = newTotalLength(find(abs(zscore(newTotalLength))<=1.5));
std(newTotalLength)
mean(newTotalLength)
newTotalLength = totalLength(find(abs(zscore(totalLength))<=1.2));
std(newTotalLength)
mean(newTotalLength)
newTotalLength = newTotalLength(find(abs(zscore(newTotalLength))<=1.2));
std(newTotalLength)
mean(newTotalLength)
%}
newTotalLength = totalLength(find(abs(zscore(totalLength))<=1));
std(newTotalLength)
mean(newTotalLength)
newTotalLength = newTotalLength(find(abs(zscore(newTotalLength))<=1));
std(newTotalLength)
mean(newTotalLength)