📄 distance.sci
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -