Skip to content

Commit

Permalink
another bug
Browse files Browse the repository at this point in the history
  • Loading branch information
chung@molgen.mpg.de committed Jan 20, 2016
1 parent 0a6bd4f commit b89b057
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/rmn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,11 @@ void calcSumZ(const arma::vec& z, const arma::vec& empty, const arma::uvec& s, a
sumZ(w, s(i)) += empty(i);
sumZ(arma::span(w - 1 - i, w - 1), s(i)) += z(arma::span(0, i));
}

}
for (; i < L; i++){
sumZ(w, s(i)) += empty(i);
sumZ(arma::span(0, w - 1), s(i)) += z(arma::span(i - w + 1, i));
}
}


void calcLnEmPN(const arma::umat& u, const arma::uvec& s, const arma::mat& mu, arma::vec& lnEmPN){
Expand Down

0 comments on commit b89b057

Please sign in to comment.