svtol.m
来自「用工具箱做的」· 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(如果变量数目不等于1,svtol子函数无效)
help svtol
else
% tolerance for Support Vector Detection
if C==Inf %如果c=无穷大
tol = 1e-5; %tol=
else
tol =C*1e-6; %tol=
end
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?