📄 minball.html
字号:
<html><head> <meta HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=ISO-8859-1"> <title>Contents.m</title><link rel="stylesheet" type="text/css" href="../stpr.css"></head><body><table border=0 width="100%" cellpadding=0 cellspacing=0><tr valign="baseline"><td valign="baseline" class="function"><b class="function">MINBALL</b><td valign="baseline" align="right" class="function"><a href="../kernels/index.html" target="mdsdir"><img border = 0 src="../up.gif"></a></table> <p><b>Minimal enclosing ball in kernel feature space. </b></p> <hr><div class='code'><code><span class=help></span><br><span class=help> <span class=help_field>Synopsis:</span></span><br><span class=help> model = minball(X)</span><br><span class=help> model = minball(X,options)</span><br><span class=help></span><br><span class=help> <span class=help_field>Description:</span></span><br><span class=help> It computes center and radius of the minimal ball</span><br><span class=help> enclosing data X mapped into a feature space induced </span><br><span class=help> by a given kernel. The problem leads to a QP problem which is </span><br><span class=help> solve by 'quadprog' of the MATLAB Optimization toolbox.</span><br><span class=help> </span><br><span class=help> <span class=help_field>Input:</span></span><br><span class=help> X [dim x num_data] Input data.</span><br><span class=help> options [struct] Control parameters:</span><br><span class=help> .ker [string] Kernel identifier (default 'linear'). See 'help kernel'.</span><br><span class=help> .arg [1 x nargs] Kernel arguments.</span><br><span class=help> .eps [1x1] Multipliers less then eps are set to zero (default 1e-12).</span><br><span class=help> .mu [1x1] Regularization constant given to diagonal of the </span><br><span class=help> kernel matrix (default 1e-12).</span><br><span class=help></span><br><span class=help> <span class=help_field>Output:</span></span><br><span class=help> model [struct] Center of the ball in the kernel feature space:</span><br><span class=help> .sv.X [dim x nsv] Data determining the center.</span><br><span class=help> .Alpha [nsv x 1] Data weights.</span><br><span class=help> .r [1x1] Radius of the minimal enclosing ball.</span><br><span class=help> .b [1x1] Squared norm of the center equal to Alpha'*K*Alpha.</span><br><span class=help> .options [struct] Copy of used options.</span><br><span class=help></span><br><span class=help> <span class=help_field>Example:</span></span><br><span class=help> data = load('riply_trn');</span><br><span class=help> options = struct('ker','linear','arg',1);</span><br><span class=help> model = minball(data.X,options);</span><br><span class=help> [Ax,Ay] = meshgrid(linspace(-5,5,100),linspace(-5,5,100));</span><br><span class=help> dist = kdist([Ax(:)';Ay(:)'],model);</span><br><span class=help> figure; hold on; </span><br><span class=help> ppatterns(data.X); ppatterns(model.sv.X,'ro',12);</span><br><span class=help> contour( Ax, Ay, reshape(dist,100,100),[model.r model.r]);</span><br><span class=help></span><br><span class=help> <span class=also_field>See also </span><span class=also></span><br><span class=help><span class=also> <a href = "../kernels/kdist.html" target="mdsbody">KDIST</a>.</span><br><span class=help></span><br></code></div> <hr> <b>Source:</b> <a href= "../kernels/list/minball.html">minball.m</a> <p><b class="info_field">About: </b> Statistical Pattern Recognition Toolbox<br> (C) 1999-2003, Written by Vojtech Franc and Vaclav Hlavac<br> <a href="http://www.cvut.cz">Czech Technical University Prague</a><br> <a href="http://www.feld.cvut.cz">Faculty of Electrical Engineering</a><br> <a href="http://cmp.felk.cvut.cz">Center for Machine Perception</a><br> <p><b class="info_field">Modifications: </b> <br> 25-aug-2004, VF, added model.fun = 'kdist' and .diag_add changed to .mu <br> 16-may-2004, VF<br> 15-jun-2002, VF<br></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -