From 24c763e80a62e4fa73d4a298083db3e3ec0887a2 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Fri, 11 May 2012 10:25:51 +0200 Subject: mean/rand_pred: Use same function prototype as regress_pred The number of days is implicit in the size of the given price and quantity matrices. --- mean_pred.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mean_pred.m') 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 -- cgit