Skip to content

Commit

Permalink
added debug for estimateZ
Browse files Browse the repository at this point in the history
  • Loading branch information
chung@molgen.mpg.de committed Jan 20, 2016
1 parent 03626e8 commit a16e00f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rmn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ void estimateZ(
for (i = 1; i < L + 1; ++i, ++F_it, ++B_it){

if (i >= w){
std::cout << i << '\t' << *forlnEmPN_it << std::endl;
*F_it = logSumExp(0, *forlnEmPN_it++ + lnTPN + *(F_it - w) - *(F_it - 1));
*B_it = logSumExp(0, *revlnEmPN_it++ + lnTPN + *(B_it - w) - *(B_it - 1));

Expand All @@ -69,6 +70,8 @@ void estimateZ(
*F_it += *(F_it - 1);
*B_it += *(B_it - 1);
}

std::cout << "lnL = " << F[L] << std::endl;
lnL += F[L];

// calculate posterior;
Expand Down

0 comments on commit a16e00f

Please sign in to comment.