Skip to content
Snippets Groups Projects
Commit 56ba532d authored by ac_fx's avatar ac_fx
Browse files

od_rkhs -- per cluster log|x|/8

parent 1c8f8835
No related merge requests found
% computes optimality deficiency for each xk in the rkhs
% od = Z(x) - z(x) + log|x|
% log2|x| / 8 to put cardinality into bytes
% maybe bytes is wrong? xk is in rkhs units, normalized and from ncd
function dx = od_rkhs(xk)
cx = repmat(mean(xk),size(xk,1),1);
dx = vecnorm(cx - xk, 2, 2) + log2(size(xk,1));
dx = vecnorm(cx - xk, 2, 2) + log2(size(xk,1))/8;
4;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment