summaryrefslogtreecommitdiff
path: root/mean_pred.m
diff options
context:
space:
mode:
Diffstat (limited to 'mean_pred.m')
-rw-r--r--mean_pred.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/mean_pred.m b/mean_pred.m
index bc0edd0..4cd3e06 100644
--- a/mean_pred.m
+++ b/mean_pred.m
@@ -1,5 +1,6 @@
-function pred_mat = mean_pred(data, days)
+function pred_mat = mean_pred(price, data)
+ days = size(price, 1) - size(data, 1);
pred_mat = repmat(mean(data), days, 1);
endfunction