summaryrefslogtreecommitdiff
path: root/rand_pred.m
blob: 2bca8b69ea2acc6538a4d57678edafb83e4b2307 (plain)
1
2
3
4
5
6
7
8
9
function pred = rand_pred(price, data)

	times = size(price, 1) - size(data, 1);
	pred = zeros(times, 1);

	for i = 1:times
		pred(i) = abs(normrnd(mean(data), sqrt(var(data))));
	end
end