function d = distfcm(center, data)
%DISTHCM measures distances between all points and centers 
%in hard C-mean clustering.

%Carson KAO, May 9, 1997

d = zeros(size(center, 1), size(data, 1));
for i = 1:size(center, 1),
	d(i, :) = sqrt(sum(((data-ones(size(data, 1), 1)*center(i, :)).^2)'));
end
