summaryrefslogtreecommitdiff
path: root/run_tests.m
diff options
context:
space:
mode:
Diffstat (limited to 'run_tests.m')
-rw-r--r--run_tests.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/run_tests.m b/run_tests.m
index 031dd82..32e49cb 100644
--- a/run_tests.m
+++ b/run_tests.m
@@ -1,9 +1,9 @@
[p, q] = get_products();
% quantity sum over a day
-plot(sum(q'));
+%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));
+calc_error('mean', q(29:42, :), mean_pred(q(1:28, :), 14));
+calc_error('regress', q(29:42, :), regress_pred(p, q(1:28, :)));
+calc_error('sevenday', q(29:42, :), repmat(sevenday_pred(q(1:28, :), 4), 2, 1));