summaryrefslogtreecommitdiff
path: root/opt_idx.m
blob: 76864c869b435cabf78010d7f728e13497d614e1 (plain)
1
2
3
4
5
6
7
8
9
10
function idx = opt_idx(real_data, pred_list)

	err_list = zeros(size(pred_list, 2), size(real_data, 2));

	for i = 1:size(pred_list, 2)
		err_list(i,:) = sum(abs(real_data - pred_list{i}));
	end

	[min_err, idx] = min(err_list);
end