-
Notifications
You must be signed in to change notification settings - Fork 9
/
scenario_runner.m
41 lines (32 loc) · 1.41 KB
/
scenario_runner.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
% scenario runner
addpath(genpath('.'));
clc
clear
close all
% combinations:
% 1- simple HOC + Simple DIST + simple MU
% 2- gridding HOC overall (avg/wei) + simple DIST + simple MU
% 3- gridding HOC + gridding DIST (avg/wei) + simple MU
% 4- gridding HOC overall (avg/wei) + simple DIST + complex MU
% 5- gridding HOC + gridding DIST (avg/wei) + complex MU
headers = {'HOC Bins' , 'Number of Bins', 'Gridding', 'Similarity Measure', 'Intra Similarity', 'Inter Similarity' , 'Template Sim(no upd)' , 'Template Sim(moving)' , 'Template Sim(last 5)' , 'Template Sim(avg all)' , 'Template Sim(memory)' , 'Score'};
delimit = {'========' , '==============', '========', '==================', '================', '================' , '====================' , '====================' , '====================' , '=====================' , '====================' , '====='};
[~, ~, t] = xlsread('in.xlsx');
for i = 1:size(t,1)
i
gridding = t{i,3};
if (isnan(gridding)), gridding = ''; end;
r = scenario1(t{i,1},gridding,t{i,5},t{i,4});
t{i,5}=sprintf('%0.2f',r(1));
t{i,6}=sprintf('%0.2f',r(2));
t{i,7}=sprintf('%0.2f',r(3));
t{i,8}=sprintf('%0.2f',r(4));
t{i,9}=sprintf('%0.2f',r(5));
t{i,10}=sprintf('%0.2f',r(6));
t{i,11}=sprintf('%0.2f',r(7));
t{i,12}=sprintf('%0.2f',r(8));
end
%
disp([headers;delimit;t])
xlswrite('automation/out.xlsx',[headers;t])
close all