function index = myquantiz(signal, partition)
	Npart		= length(partition);
	index		= zeros(size(signal));
	for i = 1:Npart
		index = index + (signal > partition(i))*1;
	end
end