91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 323KB
    文件類型: .zip
    金幣: 1
    下載: 0 次
    發布日期: 2021-01-05
  • 語言: Matlab
  • 標簽:

資源簡介

本ZIP文件中包括粒子群優化算法的matlab實現代碼,另外提供了機遇PSO算法的圖像聚類code。粒子群優化算法作為群智能優化算法領域的經典、重要算法,由于算法的高效性,應經在全局優化領域占有重要地位。

資源截圖

代碼片段和文件信息

function?[costcentres_new]?=?ClusteringCost(centersdatancolors)
%?Calculate?posteriors?based?on?existing?centres
id?=?eye(ncolors);
centers?=?reshape(centers3ncolors);
d2??????=?dist2(data?centers‘);
%?Assign?each?point?to?nearest?centre
[minvalsindex]?=?min(d2?[]?2);
%?Error?value?is?total?squared?distance?from?cluster?centres
cost?=?sum(minvals);
post?=?id(index:);

num_points?=?sum(post?1);
%?Adjust?the?centres?based?on?new?posteriors
centres_new?=?zeros(3ncolors);
for?j?=?1:ncolors
????if?(?num_points(j)?>?0?)
????????centres_new(:j)?=?sum(?data(?find(?post(:j)?):?)?1?)‘/num_points(j);
????end
end

centres_new?=?centres_new(:)‘;

end

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????683??2016-08-18?19:38??PSO\ClusteringCost.m
?????文件?????????697??2016-08-18?17:54??PSO\Demo1.m
?????文件????????1296??2016-08-20?15:49??PSO\Demo2.m
?????文件?????????842??2016-08-20?14:55??PSO\Dist2.m
?????文件????????3476??2016-08-20?09:24??PSO\PSO.m
?????文件??????191278??2016-08-18?17:54??PSO\test.png
?????文件??????136390??2016-08-18?17:54??PSO\test1.png
?????目錄???????????0??2016-08-21?17:08??PSO\

評論

共有 條評論