diff options
Diffstat (limited to 'rand_pred.m')
-rw-r--r-- | rand_pred.m | 3 |
1 files changed, 2 insertions, 1 deletions
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) |