www.pudn.com > 1_FCM_S.zip > kmwrapper.m, change:2002-07-25,size:214b


function [centers,assignments,error] = kmwrapper(data,k,n,t,count);
er=inf;

for c=1:count
  c
  [cen,a,e]=km(data,k,n,t);
  if sum(e) < er;
    er=sum(e)
    centers=cen;
    assignments=a;
    error=e;
  end
end