資源簡(jiǎn)介
BPSO 二進(jìn)制粒子群優(yōu)化算法matlab源代碼實(shí)現(xiàn)
代碼片段和文件信息
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
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件????????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
評(píng)論
共有 條評(píng)論