Skip to content

Commit

Permalink
correctly moving starting grid index for grid indices search
Browse files Browse the repository at this point in the history
  • Loading branch information
xji3 committed Nov 8, 2023
1 parent 38d0e27 commit 55c57a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dr/evomodel/coalescent/smooth/SkyGlideLikelihood.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public double getSingleTreeLogLikelihood(int index) {
}
sum += getLinearInverseIntegral(gridPointParameter.getParameterValue(currentGridIndex), intervalEnd, currentGridIndex + 1);
}
currentGridIndex = lastGridIndex - 1;
currentGridIndex = lastGridIndex;
lnL -= 0.5 * lineageCount * (lineageCount - 1) * sum;
}
}
Expand Down

0 comments on commit 55c57a3

Please sign in to comment.