⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 numconvertcard.m

📁 UMDA. a kind of estimation of distribution algorithm , which is the improvement of genetic algorithm
💻 M
字号:
function [valindex] = NumconvertCard(num,length,AccCard)% This function converts a vector of variables num, where the accumulative cardinality of each variable is in AccCard,% to the index valindex corresponding to the vector.% AccCard is the product of cardinalities of previous  variables, where the first variable is  the one to left.  valindex = num(length);     for i=1:length-1,   valindex =  valindex +  num(i)*AccCard(i); end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -