summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--regress_frequency_removal.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress_frequency_removal.m b/regress_frequency_removal.m
index bd6a343..8c3c696 100644
--- a/regress_frequency_removal.m
+++ b/regress_frequency_removal.m
@@ -3,8 +3,8 @@ function pred = regress_frequency_removal(price, quantity)
assert(size(quantity, 1) >= 14);
%test_count = size(quantity, 1);
test_count = 14;
- test_set = 1:test_count
- pred_set = size(quantity, 1)+1:size(price, 1)
+ test_set = 1:test_count;
+ pred_set = size(quantity, 1)+1:size(price, 1);
[q2, removed] = remove_sevenday_frequency(quantity(test_set, :));
pred = regress_pred(price([test_set pred_set],:), q2);