basicroc.m

来自「Gentleboost」· M 代码 · 共 37 行

M
37
字号
function [tp , fp , threshold] = basicroc(y , f , options)

%
%[tp , fp , threshold] = basicroc(y , f , [positive]);
%
% Return the true positive rate, the false positive rate and the threshold
%
%
%  Author : S閎astien PARIS : sebastien.paris@lsis.org
%  -------  Date : 04/09/2006



if nargin < 3
    
    options.positive = 1;
    
    options.nbstep   = 100;
    
end

if (~any(strcmp(fieldnames(options) , 'positive')))

    options.positive = 1;

end

if (~any(strcmp(fieldnames(options) , 'nbstep')))

    options.nbstep   = 100;

end


yunique            = unique(y);
%bin                = histc(y , yunique);
%petite modification pour le cas o

⌨️ 快捷键说明

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