svtol.m

来自「基于MATLAB的源SVM程序包」· M 代码 · 共 23 行

M
23
字号
function tol = svtol(C)
%SVTOL Tolerance for Support Vectors
%
%  Usage: tol = svtol(C)
%
%  Parameters: C      - upper bound 
%
%  Author: Steve Gunn (srg@ecs.soton.ac.uk)


  if (nargin ~= 1) % check correct number of arguments
    help svtol
  else

    % tolerance for Support Vector Detection
    if C==Inf 
      tol = 1e-5;
    else
      tol = C*1e-6;
    end
    
  end

⌨️ 快捷键说明

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