Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
function normalizedKernel = normalizeKernel(Kmat)
% NORMALIZEKERNEL
% Diagonal normalizes a given kernel matrix
%
% INPUT PARAMS
% Param 'Kmat' (matrix)
% The input kernel matrix
%
% OUTPUT PARAMS
% Param 'normalizedKernel'
% The diagonal-normalized kernel matrix
%
% ADDITIONAL NOTES
%
%
% Author: snikumbh@mpi-inf.mpg.de
KdiagVec = sqrt(diag(Kmat));
normalizedKernel = Kmat ./ (KdiagVec * KdiagVec');
end