Skip to content

Commit

Permalink
latent lik bug
Browse files Browse the repository at this point in the history
  • Loading branch information
brj1 committed Feb 17, 2023
1 parent d700887 commit 3151483
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified dist/BBD.addon.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion src/bbd/distributions/LatencyPrior.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public double calculateLogP() {
final double tMRCA = tree.getRoot().getDate();
final double rate = reactivationRate - latencyRate;
final double logRate = Math.log(rate);
final double tMRCAFactor = Math.log(rate * tMRCA);
final double tMRCAFactor = Math.exp(rate * tMRCA);

for (final int i : taxonIndex) {
double date = tree.getNode(i).getDate();
Expand Down

0 comments on commit 3151483

Please sign in to comment.