资源简介

将遗传算法和聚类算法有效结合,充分发挥遗传算法的全局寻优能力和聚类算法的局部搜索能力,可以更好地提高聚类质量。

资源截图

代码片段和文件信息

function fu=belong(chistv_end)
   
   a=size(hist1);
   
   dist = zeros(ac);
   for k=1:a
       for i=1:c
           dist(ki)=sqrt(k-v_end(i));
       end
   end
   
    %求隶属度
    m=2;%m为加权指数
   u = zeros(ac);
   b=0;
   for k=1:a
       for i=1:c
           a_a=dist(ki);
           if a_a==0
               b=0;
               break;
           end
           b=(1/a_a)^(2/(m-1))+b;
       end
   end
   
   
   for k=1:a
       for i=1:c
           if dist(ki)==0
               u(ki)=0;
               break;
           end
           u(ki)=abs(b/(dist(ki)^(2/(m-1))));
       end
   end 
   fu=u;

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        659  2007-06-08 21:35  ga_improve_fcm\ga_improve_fcm\ga_improve_fcm\belong.m

     文件        524  2007-06-07 16:29  ga_improve_fcm\ga_improve_fcm\ga_improve_fcm\cross.m

     文件       1506  2007-06-09 18:09  ga_improve_fcm\ga_improve_fcm\ga_improve_fcm\fcm.m

     文件       2767  2010-05-11 20:57  ga_improve_fcm\ga_improve_fcm\ga_improve_fcm\ga_improve_fcm.m

     文件        411  2007-06-11 20:17  ga_improve_fcm\ga_improve_fcm\ga_improve_fcm\mutation1.m

     文件        497  2007-06-11 20:34  ga_improve_fcm\ga_improve_fcm\ga_improve_fcm\replace.m

     文件        527  2007-06-09 18:11  ga_improve_fcm\ga_improve_fcm\ga_improve_fcm\select.m

     目录          0  2010-05-11 20:56  ga_improve_fcm\ga_improve_fcm\ga_improve_fcm

     目录          0  2010-05-11 21:09  ga_improve_fcm\ga_improve_fcm

     目录          0  2010-05-11 21:07  ga_improve_fcm

----------- ---------  ---------- -----  ----

                 6891                    10


评论

共有 条评论