Mercurial > hg > ishara
view 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 |
line wrap: on
line source
function C=stats_cov(stats) m1=mstep(stats); C=m1.cov; end function M=mstep(S) M.mu=S.amu/S.ag; M.cov=msym(S.aco/S.ag - M.mu*M.mu'); end function A=msym(X), A=(X+X')/2; end