norml.m
来自「聚类分析工具箱 亚历山大博士写的」· M 代码 · 共 17 行
M
17 行
% function x = norml(x,mode)
%
% copyright (c) 1998-2002 by Alexander Strehl
function x = norml(x,mode)
switch mode
case 0,
case 1,
x = diag(sparse(1./sum(abs(x),2))) * x;
case 2,
x = diag(sparse(1./sum((x.^2),2).^(1/2))) * x;
otherwise,
disp('norml: mode not supported');
end;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?