reject.m

来自「matlab 模式识别工具包 希望能对你们有用」· M 代码 · 共 29 行

M
29
字号
%REJECT Compute error-reject trade-off curve% % 	e = reject(D)% % Computes the error-reject curve of the classification result% D = A*W, in which A is a dataset and W a classifier. e is a % set of (reject;error) rates. Use plot2(e) for plotting the % result% % See also: mappings, plot2, roc, testd% Copyright: R.P.W. Duin, duin@ph.tn.tudelft.nl% Faculty of Applied Physics, Delft University of Technology% P.O. Box 5046, 2600 GA Delft, The Netherlandsfunction e = reject(D)if nargin == 0 | isempty(D)	e = mapping('reject','fixed');	returnend[e,n] = nstrcmp(classd(D),getlab(D));if size(D,2) == 1	D = [D -D];end[y,J] = sort(max(+D,[],2));n = 1-n(J)';m = length(n);e = [[0:m]; e e-cumsum(n)]/m;

⌨️ 快捷键说明

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