Skip to content

Commit

Permalink
When there is drift, try going back to using the internal node simula…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
pbastide committed Dec 15, 2023
1 parent cf0a9ac commit dab5926
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ private void simulateTraitForExternalNode(final int nodeIndex,

} else {

if (zeroCount == dimTrait) { // All missing completely at random
if (zeroCount == dimTrait && !likelihoodDelegate.getDiffusionProcessDelegate().hasDrift()) { // All missing completely at random
//TODO: This is N(X_pa(j), l_j V_root). Why not N(X_pa(j), V_branch) ?

final double sqrtScale = Math.sqrt(1.0 / branchPrecision);
Expand Down

0 comments on commit dab5926

Please sign in to comment.