diff --git a/main.m b/main.m index 065f62c..a5fdce2 100644 --- a/main.m +++ b/main.m @@ -1,12 +1,13 @@ clc clear close all +tic %先形成初始点 center=[1,1,1,1,1;10,10,10,10,10;100,100,100,100,100;1000,1000,1000,1000,1000]; % center=[1;10;100;1000]; -dataN=100;% 生成多少个数据 +dataN=50000;% 生成多少个数据 Dim=5; -clusterN=5; +clusterN=100; data=zeros(Dim,dataN); % data=[11,101,1001,1,2,3]; for I=1:dataN @@ -14,6 +15,8 @@ for I=1:dataN data(:,I)=center(i)*( -1+(1+1)*rand(Dim,1)); end +data=rand(Dim,dataN); + SetS=[1;]; @@ -117,4 +120,5 @@ while 1 fprintf('clustering is done.\n') break; end -end \ No newline at end of file +end +toc \ No newline at end of file diff --git a/pam1.pdf b/pam1.pdf new file mode 100644 index 0000000..b238338 Binary files /dev/null and b/pam1.pdf differ