Skip to content

Commit

Permalink
rollback a over-simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
sth4nth committed Feb 18, 2016
1 parent ccd847b commit 19796f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chapter10/mixGaussVb.m
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@
Eqpi = logCalpha;
Epmu = 0.5*d*k*log(kappa0);
Eqmu = 0.5*d*sum(log(kappa));
logB0 = -0.5*v0*(logW0)-logMvGamma(0.5*v0,d);
logB0 = -0.5*v0*(logW0+d*log(2))-logMvGamma(0.5*v0,d);
EpLambda = k*logB0;
logB = -0.5*v.*(logW)-logMvGamma(0.5*v,d);
logB = -0.5*v.*(logW+d*log(2))-logMvGamma(0.5*v,d);
EqLambda = sum(logB);
EpX = -0.5*d*n*log(pi);
EpX = -0.5*d*n*log(2*pi);
L = Epz-Eqz+Eppi-Eqpi+Epmu-Eqmu+EpLambda-EqLambda+EpX;

0 comments on commit 19796f1

Please sign in to comment.