summaryrefslogtreecommitdiff
path: root/run_tests.m
blob: 031dd8291d04f1d5ed1be8d174e161ead456b7cb (plain)
1
2
3
4
5
6
7
8
9
[p, q] = get_products();

% quantity sum over a day
plot(sum(q'));

% plot prediction quallity
calc_error(q(29:42, :), mean_pred(q(1:28, :), 14));
calc_error(q(29:42, :), regress_pred(p, q(1:28, :)));
calc_error(q(29:42, :), repmat(sevenday_pred(q(1:28, :), 4), 2, 1));