Skip to content

Commit

Permalink
Random.randexp()
Browse files Browse the repository at this point in the history
  • Loading branch information
LebedevRI committed Sep 19, 2024
1 parent ea7b5ce commit 8551998
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/univariate/continuous/pgeneralizedgaussian.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ using Test

@testset "Special cases" begin
μ = randn()
α = Random.randexp()
α = randexp()
for (d, dref) in (
(PGeneralizedGaussian(μ, α, 1), Laplace(μ, α)), # p = 1 (Laplace)
(PGeneralizedGaussian(), Normal()), # p = 2 (standard normal)
Expand Down Expand Up @@ -80,8 +80,8 @@ using Test

@testset "Non-special case" begin
μ = randn()
α = Random.randexp()
p = Random.randexp()
α = randexp()
p = randexp()
d = PGeneralizedGaussian(μ, α, p)

@test minimum(d) == -Inf
Expand Down

0 comments on commit 8551998

Please sign in to comment.