?? checkcl.m
字號:
% function cl = checkcl(cl)
%
% DESCRIPTION
% Checks a cluster labeling for validity and fixes
% detected problems
%
% Copyright (c) 1998-2002 by Alexander Strehl
function cl = checkcl(cl)
if ~isempty(cl),
if min(cl)<=0,
disp('checkcl: non-positive values in cl');
cl = cl-min(cl)+1;
disp('checkcl: offset to minimum 1');
end;
if max(cl) ~= max(onetomax(cl)),
disp('checkcl: not a dense integer mapping');
cl = onetomax(cl);
disp(['checkcl: remapped to 1 to ' num2str(max(cl))]);
end;
else
disp('checkcl: empty clustering');
end;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -