資源簡介
BPSO 二進制粒子群優化算法matlab源代碼實現
代碼片段和文件信息
function?y=mybin2dec(x)
if?x==0
????y=0;
else
????l=length(x);
????y=0;
????for?i=0:l-1
????????y=y+x(i+1)*2^(i);
????end
end
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????1346??2013-01-14?06:32??license.txt
?????文件?????????136??2006-12-29?04:26??mybin2dec.m
?????文件????????3356??2007-04-11?04:05??test3.m
?????文件??????????46??2012-12-19?18:38??testfunction1.m
評論
共有 條評論