xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

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

資源簡(jiǎn)介

本ZIP文件中包括粒子群優(yōu)化算法的matlab實(shí)現(xiàn)代碼,另外提供了機(jī)遇PSO算法的圖像聚類code。粒子群優(yōu)化算法作為群智能優(yōu)化算法領(lǐng)域的經(jīng)典、重要算法,由于算法的高效性,應(yīng)經(jīng)在全局優(yōu)化領(lǐng)域占有重要地位。

資源截圖

代碼片段和文件信息

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

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件?????????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\

評(píng)論

共有 條評(píng)論

相關(guān)資源