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

📄 inclassdistance.m

📁 模式识别中的isodata算法
💻 M
字号:
function s=inclassdistance(x,y)
% x is the center[cx cy]
% y is matrix of element in the class[x1 y1; x2 y2; ...]

% square distances
d2=(y(:,1)-x(1)).^2+(y(:,2)-x(2)).^2;
s=sum(sqrt(d2))/length(y(:,1));
%%%Author: Feng Shuo%%%%%%%%

⌨️ 快捷键说明

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