minballdemo1.m~

来自「this a SVM toolbox,it is very useful for」· M~ 代码 · 共 21 行

M~
21
字号
% Demo on finind minimal ball around data.% loads datadata=load('data1');% compute minimal ball around data (one-class SVM) in 'RBF" spaceker='rbf';arg=0.5;[Alpha, R, mi2 ] = minball(data.X,ker, arg);% compute distance between point x and the center of minimal ball which is% given by Alphax=[0;0];  % for example origin...[d]=kdist(x,data.X,Alpha,ker,arg)% plots contours with equal distance from the center of min-ballfigure; axis([-1 1 -1 1]); hold on;pkdist(data.X,Alpha,ker,arg,struct('background',1));

⌨️ 快捷键说明

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