annotate _FullBNT/KPMtools/centeringMatrix.m @ 9:4ea6619cb3f5 tip

removed log files
author matthiasm
date Fri, 11 Apr 2014 15:55:11 +0100
parents b5b38998ef3b
children
rev   line source
matthiasm@8 1 N = 3;
matthiasm@8 2 x = rand(N,2); % each row is a feature vector
matthiasm@8 3 m = mean(x,1);
matthiasm@8 4 xc = x-repmat(m, N, 1);
matthiasm@8 5
matthiasm@8 6 C = eye(N) - (1/N)*ones(N,N);
matthiasm@8 7 xc2 = C*x;
matthiasm@8 8 assert(approxeq(xc, xc2))