svtol.m
资源名称:SVM--SVM.rar [点击查看]
上传用户:liu_jing
上传日期:2013-07-02
资源大小:4k
文件大小:0k
源码类别:
数值算法/人工智能
开发平台:
Matlab
- 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