?? minballdemo1.m
字號:
% Demo on finding minimal ball around data.% Statistical Pattern Recognition Toolbox, Vojtech Franc, Vaclav Hlavac% (c) Czech Technical University Prague, http://cmp.felk.cvut.cz% Modifications% 11-Nov-2002, V.Franc% 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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -