Skip to content

Commit

Permalink
fixed logitnormal test
Browse files Browse the repository at this point in the history
  • Loading branch information
timmyfaraday committed Nov 18, 2020
1 parent 6e69cf9 commit 2abadca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/gradlogpdf.jl
Expand Up @@ -13,7 +13,7 @@ using Test
@test isapprox(gradlogpdf(Gumbel(3.5, 1.0), 4.0) , -1.6065306597126334 , atol=1.0e-8)
@test isapprox(gradlogpdf(Laplace(7.0), 34.0) , -1.0 , atol=1.0e-8)
@test isapprox(gradlogpdf(Logistic(-6.0), 1.0) , -0.9981778976111987 , atol=1.0e-8)
@test isapprox(gradlogpdf(LogitNormal(3.0), 5.0) , -13.905620875658997 , atol=1.0e-8)
@test isapprox(gradlogpdf(LogitNormal(0.8), 0.4) , 0.2059548878248986 , atol=1.0e-8)
@test isapprox(gradlogpdf(LogNormal(5.5), 2.0) , 1.9034264097200273 , atol=1.0e-8)
@test isapprox(gradlogpdf(Normal(-4.5, 2.0), 1.6), -1.525 , atol=1.0e-8)
@test isapprox(gradlogpdf(TDist(8.0), 9.1) , -0.9018830525272548 , atol=1.0e-8)
Expand Down
2 changes: 1 addition & 1 deletion test/heslogpdf.jl
Expand Up @@ -12,7 +12,7 @@ using Test
@test isapprox(heslogpdf(Gumbel(3.5, 1.0), 4.0) , 0.6065306597126334 , atol=1.0e-8)
@test isapprox(heslogpdf(Laplace(7.0), 34.0) , 0.0 , atol=1.0e-8)
@test isapprox(heslogpdf(Logistic(-6.0), 1.0) , -0.00182044236024365, atol=1.0e-8)
@test isapprox(heslogpdf(LogitNormal(3.0), 5.0) , -4.257529394046549 , atol=1.0e-8)
@test isapprox(heslogpdf(LogitNormal(0.8), 0.4) , -0.12837092681258455, atol=1.0e-8)
@test isapprox(heslogpdf(LogNormal(5.5), 2.0) , -1.2017132048600137 , atol=1.0e-8)
@test isapprox(heslogpdf(Normal(-4.5, 2.0), 1.6), -0.25 , atol=1.0e-8)
@test isapprox(heslogpdf(TDist(8.0), 9.1) , 0.0816459812355031 , atol=1.0e-8)
Expand Down

0 comments on commit 2abadca

Please sign in to comment.