distance.sci
来自「站长您好!GATS是一种遗传算法工具箱」· SCI 代码 · 共 8 行
SCI
8 行
function [distance] = Distance(Pop1,Pop2) // the distance of two individuals
n=size(Pop1,2) -1; //Variables' number
ndis=(Pop1(1:n) - Pop2(1:n))'.^2; // the distances of variables between two individuals
distance = sqrt(sum(ndis)/n); // the distance of two individuals
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?