function groups = cross_makegroups(points,numgroups)
% MSMT_MAKEGROUPS decides how to divide points up into numgroups groups
%
%	groups = msmt_makegroups(points,numgroup) returns a vector where:
%
%	groups(i) = beginning indice of the i-th group
%	points: number of points to divide up
%	numgroups: the number of groups to make
%	NOTE: points >= numgroups

% determine floating-point size of groups:
fpsize = points/numgroups;
%

% start grouping:

for i = 1:numgroups
	groups(i) = round((i-1)*fpsize)+1;
		
end
% This last integer is tacked on making the loop in cross-validation work
groups(numgroups+1)= points + 1;

