Skip to content

Commit

Permalink
Removing a check that should be handled by the individual distributions.
Browse files Browse the repository at this point in the history
  • Loading branch information
rambaut committed Nov 21, 2023
1 parent 9906a2c commit ed73ba9
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/dr/inference/distribution/DistributionLikelihood.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,6 @@ public double calculateLogLikelihood() {

final double value = attributeValue[j] - offset;

if (offset > 0.0 && value < 0.0) {
// fixes a problem with the offset on exponential distributions not
// actually bounding the distribution. This only performs this check
// if a non-zero offset is actually given otherwise it assumes the
// parameter is either legitimately allowed to go negative or is bounded
// at zero anyway.
return Double.NEGATIVE_INFINITY;
}
logL += getLogPDF(value, count);
count += 1;
}
Expand Down

0 comments on commit ed73ba9

Please sign in to comment.