comparison notes/hnmf.m @ 19:f1f8c84339d0

Starting to revisit this EM logic and test in a single-column world
author Chris Cannam
date Wed, 26 Mar 2014 18:49:12 +0000
parents d42c500b8ad0
children
comparison
equal deleted inserted replaced
18:bbc8185ba511 19:f1f8c84339d0
66 66
67 % Iterate 67 % Iterate
68 for it = 1:iter 68 for it = 1:iter
69 69
70 % E-step 70 % E-step
71 zh = z .* permute(repmat(h,[1 1 R]),[3 1 2]); 71 zh = z .* permute(repmat(h,[1 1 R]),[3 1 2]); %% z is the source activation distribution, h the component (pitch) activation
72 xa=eps; 72 xa=eps;
73 for r=1:R 73 for r=1:R
74 for k=1:K 74 for k=1:K
75 xa = xa + w(:,k,r) * squeeze(zh(r,k,:))'; 75 xa = xa + w(:,k,r) * squeeze(zh(r,k,:))';
76 end; 76 end;