Skip to content

Commit

Permalink
Merge pull request #136 from apike02/ewmv_modified
Browse files Browse the repository at this point in the history
Ewmv modified
  • Loading branch information
JaeyeongYang committed Jul 29, 2021
2 parents 8cfc542 + 7036b85 commit cf9a08f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions commons/stan_files/bart_ewmv.stan
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ model {
n_succ += pumps[j, k] - explosion[j, k];
n_pump += pumps[j, k];

p_burst = phi[j] + (1 - exp(-n_pump * eta[j])) * ((0.0 + n_pump - n_succ) / n_pump - phi[j]);
if(n_pump>0){
p_burst = phi[j] + (1 - exp(-n_pump * eta[j])) * ((0.0 + n_pump - n_succ) / n_pump - phi[j]);
}
}
}
}
Expand Down Expand Up @@ -153,7 +155,9 @@ generated quantities {
n_succ += pumps[j, k] - explosion[j, k];
n_pump += pumps[j, k];

p_burst = phi[j] + (1 - exp(-n_pump * eta[j])) * ((0.0 + n_pump - n_succ) / n_pump - phi[j]);
if(n_pump>0){
p_burst = phi[j] + (1 - exp(-n_pump * eta[j])) * ((0.0 + n_pump - n_succ) / n_pump - phi[j]);
}
}
}
}
Expand Down

0 comments on commit cf9a08f

Please sign in to comment.