annotate arrows/stats/stats_cov.m @ 61:eff6bddf82e3 tip

Finally implemented perceptual brightness thing.
author samer
date Sun, 11 Oct 2015 10:20:42 +0100
parents 3cedfd4549ef
children
rev   line source
samer@44 1 function C=stats_cov(stats)
samer@44 2 m1=mstep(stats);
samer@44 3 C=m1.cov;
samer@44 4 end
samer@44 5
samer@44 6 function M=mstep(S)
samer@44 7 M.mu=S.amu/S.ag;
samer@44 8 M.cov=msym(S.aco/S.ag - M.mu*M.mu');
samer@44 9 end
samer@44 10
samer@44 11 function A=msym(X), A=(X+X')/2; end