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. --- rand_pred.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rand_pred.m') diff --git a/rand_pred.m b/rand_pred.m index 5ed4be3..2e38e80 100644 --- a/rand_pred.m +++ b/rand_pred.m @@ -1,5 +1,6 @@ -function pred = rand_pred(data, times) +function pred = rand_pred(price, data) + times = size(price, 1) - size(data, 1); pred = abs(normrnd(mean(data), sqrt(var(data)))); for i = 1:(times-1) -- cgit