Skip to content

Commit

Permalink
transpose left multiplied inverse to ensure symmetric P,Q,R
Browse files Browse the repository at this point in the history
  • Loading branch information
robince committed Mar 7, 2018
1 parent 924297d commit eea10f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions calc_pi_Idep_mvn.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
chCzz = chol(Czz);

% Kay & Ince eq. D2
P = pinv(chCxx)*Cxy*pinv(chCyy);
Q = pinv(chCxx)*Cxz*pinv(chCzz);
R = pinv(chCyy)*Cyz*pinv(chCzz);
P = pinv(chCxx)'*Cxy*pinv(chCyy);
Q = pinv(chCxx)'*Cxz*pinv(chCzz);
R = pinv(chCyy)'*Cyz*pinv(chCzz);

% standard mutual informations
mivs = [vs(1)+vs(2) vs(3)];
Expand Down

0 comments on commit eea10f8

Please sign in to comment.