dualmaxvariance.m

来自「a function inside machine learning」· M 代码 · 共 15 行

M
15
字号
function b = dualMaxVariance(K, Kj, Y, Yj)
%A function to compute the dual max variance vector using Kj

if (nargin ~= 4)
    fprintf('%s\n', help(sprintf('%s', mfilename)));
    error('Incorrect number of inputs - see above usage instructions.');
end

OPTS.disp = 0;
%OPTS.issym = true;  %Think this one is true too 
OPTS.isreal = true; 
[b, lambda] = eigs(Kj, 1, 'LM', OPTS);

b = b/sqrt(lambda); 

⌨️ 快捷键说明

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