summaryrefslogtreecommitdiff
path: root/rand_pred.m
blob: cb4123f9ce41ec2083de0ab8c681df16f6b555ef (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, size(price, 2));

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