Skip to content

Commit

Permalink
add another layer of safety for internal functions
Browse files Browse the repository at this point in the history
  • Loading branch information
seabbs committed Sep 21, 2024
1 parent 878bbb8 commit aaf7663
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions inst/stan/primary_censored_dist_analytical_cdf.stan
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ real primary_censored_dist_analytical_lcdf(data real d, int dist_id,
real log_cdf_D;

if (d <= 0) return negative_infinity();
if (d >= D) return 0;

real q = max({d - pwindow, 0});

Expand Down

0 comments on commit aaf7663

Please sign in to comment.