Skip to content

Commit

Permalink
fix dNmixture_BBP_s
Browse files Browse the repository at this point in the history
  • Loading branch information
perrydv committed Jun 23, 2024
1 parent 31cef5d commit e58ce4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/dBetaBinom.R
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ dBetaBinom_s <- nimbleFunction(
return(exp(logprob))
returnType(double(0))
},
buildDerivs = list(run=list())
buildDerivs = list(run=list(ignore = 'i'))
)

#' @rdname dBetaBinom
Expand Down
2 changes: 1 addition & 1 deletion R/dNmixtureAD.R
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ dNmixtureAD_BBP_s <- nimbleFunction(
#Clen <- ADbreak(len)
Nmin <- ADbreak(max( max(x), Nmin )) ## set Nmin to at least the largest x
logProb <- dNmixture_BBP_steps(x, beta-x, lambda, s, Nmin, Nmax,
dBetaBinom_v(x, Nmin, alpha, beta, len = len, log = TRUE))
dBetaBinom_s(x, Nmin, alpha, beta, len = len, log = TRUE))
if (log) return(logProb)
else return(exp(logProb))
returnType(double())
Expand Down

0 comments on commit e58ce4e

Please sign in to comment.