summaryrefslogtreecommitdiff
path: root/pred_compare.m
blob: 7b8f523a69bf7dab3e0437338f67f6b49055f00c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
[p, q] = get_products();


wanted = sum(q');
wanted = wanted(29:42);
plot(sum(q'), '-or');

hold on;

plot(29:42, sum(mean_pred(q(1:28, :), 14)'), '-ok');
wanted - sum(mean_pred(q(1:28, :), 14)')

plot(29:42, sum(regress_pred(p, q(1:28, :))'), '-om');
wanted - sum(regress_pred(p, q(1:28, :))')

plot(29:42, sum(repmat(sevenday_pred(q(1:28, :), 4), 2, 1)'), '-ob');
wanted - sum(repmat(sevenday_pred(q(1:28, :), 4), 2, 1)')

hold off;