Skip to content

Commit

Permalink
patch v1.2.2 fix domain error by switching logccdf function to old Rm…
Browse files Browse the repository at this point in the history
…ath version
  • Loading branch information
wzhorton committed May 16, 2023
1 parent deecd41 commit 38ca7a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "PolyaGammaHybridSamplers"
uuid = "c636ee4f-4591-4d8c-9fae-2dea21daa433"
authors = ["W.Z. Horton"]
version = "1.2.1"
version = "1.2.2"

[deps]
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
Expand Down
2 changes: 1 addition & 1 deletion src/rand_pgsaddlepoint.jl
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function rand_Jstar_tilted(b::Real, z::Real, rng::AbstractRNG)
p_igauss(md, inv(rt2rl), b)

wr = exp(0.5 * log(ar) + lcn + (-b * log(b * rr) + b * ir - b * log(md) + loggamma(b)) +
logccdf(Gamma(b, inv(b*rr)), md))
StatsFuns.RFunctions.gammalogccdf(b, inv(b*rr), md))

wt = wl + wr
pl = wl * inv(wt)
Expand Down

2 comments on commit 38ca7a0

@wzhorton
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/83671

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v1.2.2 -m "<description of version>" 38ca7a00e44d178e987bfcf5f7c49a99e49aaa90
git push origin v1.2.2

Please sign in to comment.