diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-05-11 10:25:51 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-05-11 10:25:51 +0200 |
commit | 24c763e80a62e4fa73d4a298083db3e3ec0887a2 (patch) | |
tree | bd0ccfa68795f8faac6189c03afe10f29d06e1fe /mean_pred.m | |
parent | 241d4a8570d5f7b766c76ca20e4d2454ba4ee4c8 (diff) | |
download | dmc-24c763e80a62e4fa73d4a298083db3e3ec0887a2.tar.gz dmc-24c763e80a62e4fa73d4a298083db3e3ec0887a2.tar.bz2 dmc-24c763e80a62e4fa73d4a298083db3e3ec0887a2.zip |
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.
Diffstat (limited to 'mean_pred.m')
-rw-r--r-- | mean_pred.m | 3 |
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 |