-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestfork.m
More file actions
32 lines (32 loc) · 798 Bytes
/
testfork.m
File metadata and controls
32 lines (32 loc) · 798 Bytes
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
% This script will make a plot of accuracy and norm of difference matrices for each timepoint.
function [data] = testfork(file_name)
key = '';
%data = zeros(numpoints, numnodes);
if size(file_name) == 0
file_name = 'C:\Users\Ashutosh\Documents\GitHub\DistributedMulticlassSolver\Multiclass SVM Primal Solver\out.txt';
end
file = fopen(file_name);
line = fgetl(file);
index = 1;
numforeach = sscanf(line, '%d')
line = fgetl(file);
small = zeros(numforeach, 1);
large = zeros(numforeach, 1);
while ischar(line)
format = '%f';
A = sscanf(line, format)';
if index <= numforeach
small(index, 1) = A;
else
large(index - numforeach, 1) = A;
end
line = fgetl(file);
index = index + 1;
end
small;
large;
[p, t, d] = t_test_2(small, large, '<')
mean(small)
std(small)
mean(large)
std(large)