📄 inckernel.m
字号:
function K = inckernel(par,I,J);%INCKERNEL Kernel definition for incsvdd%% K = INCKERNEL(PAR,I,J);%% Computation of the kernel function for the incremental SVDD. It is% assumed that there is a global variable X_incremental, containing the% objects. This is to avoid unnecessary overhead for very large% datasets. Therefore we will also not use the 'standard' ways to comute% the kernel (i.e. proxm).%% For the definition of the kernel types, see dd_kernel.%% The index vectors I and J indicate between which objects in% X_incremental the kernel should be computed.%% See also: dd_kernel, incsvdd, myproxm, Wstartup, Wadd% Copyright: D.M.J. Tax, D.M.J.Tax@prtools.org% Faculty EWI, Delft University of Technology% P.O. Box 5031, 2600 GA Delft, The Netherlandsglobal X_incremental;if isempty(X_incremental) error('No data matrix X_incremental defined');endif isdataset(X_incremental); error('Please make X_incremental a normal matlab array');endA = X_incremental(I,:);B = X_incremental(J,:);K = dd_kernel(A,B,par.type,par.s);return
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -