Skip to content

Commit

Permalink
Merge branch 'develop' into edo_diagnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
schuemie committed Sep 30, 2024
2 parents bacd803 + b7eb2de commit 83d8561
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: SelfControlledCaseSeries
Type: Package
Title: Self-Controlled Case Series
Version: 5.3.0
Date: 2024-08-15
Version: 5.3.1
Date: 2024-09-30
Authors@R: c(
person("Martijn", "Schuemie", , "[email protected]", role = c("aut", "cre")),
person("Patrick", "Ryan", role = c("aut")),
Expand Down
8 changes: 8 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
SelfControlledCaseSeries 5.3.1
==============================

Bugfixes

1. Fixed (near) infinite loop when using end-of-observation dependence correction and weighting function is poorly integrable.


SelfControlledCaseSeries 5.3.0
==============================

Expand Down
3 changes: 2 additions & 1 deletion src/NumericIntegration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ double NumericIntegration::recursiveIntegerate(IntegrableFunction& f, const doub
double i2 = quart/3.0*(fStart+4.0*(fMidL+fMidR)+2.0*fMiddle+fEnd);
i1 = (16.0 * i2 - i1) / 15.0;
double q = 0;
if ((std::abs(i1-i2) <= std::abs(is)) || (middle <= start) || (end <= middle)) {
double epsilon = 1e-5;
if ((std::abs(i1-i2) <= std::abs(is)) || (middle - start < epsilon) || (end - middle < epsilon)) {
q = i1;
} else {
if(count < 100) {
Expand Down

0 comments on commit 83d8561

Please sign in to comment.