summaryrefslogtreecommitdiff
path: root/rand_pred.m
blob: 2e38e80dbd8d5698e971e089a0e914489daa18f0 (plain)
1
2
3
4
5
6
7
8
9
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)
		pred = [ pred; abs(normrnd(mean(data), sqrt(var(data))))];
	end
end