📄 find_target.m
字号:
%FIND_TARGET extract the indices of the target and outlier objects
%
% [It,Io] = FIND_TARGET(A)
%
% Return the indices of the objects from dataset A which are labeled
% 'target' and 'outlier' in the index vectors It and Io
% respectively. A warning is given when no target objects can be
% found.
%
% [It,Io] = FIND_TARGET(LABA)
%
% It also works when no dataset but a label matrix given
%
% See also: isocset, gendatoc, oc_set
% Copyright: D.M.J. Tax, D.M.J.Tax@prtools.org
% Faculty EWI, Delft University of Technology
% P.O. Box 5031, 2600 GA Delft, The Netherlands
function [I1,I2] = find_target(a)
% first find the logical vector of target objects:
I = istarget(a);
% extract the indices:
I1 = find(I);
% if requested, also find the outliers:
if (nargout>1)
I2 = find(~I);
end
return
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -