Skip to content

Commit 6bbda71

Browse files
committed
Fix bugs
1 parent b39b988 commit 6bbda71

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/AlphaStableDistributions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ function Distributions.fit(::Type{<:SymmetricAlphaStable}, x)
250250
if α < 0.5
251251
α = 0.5
252252
end
253-
return AlphaStable=α, β=zero(α), scale=c, location=oftype(α, δ))
253+
return SymmetricAlphaStable=α, scale=c, location=oftype(α, δ))
254254
end
255255

256256
"""

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ using Test, Random, Distributions
2828
xcauchy = rand(Cauchy(3.0, 4.0), 96000)
2929
d = fit(stabletype, xcauchy)
3030
@test d.α 1 rtol=0.2
31-
@test d.β 0 atol=0.2
31+
stabletype != SymmetricAlphaStable && @test d.β 0 atol=0.2
3232
@test d.scale 4 rtol=0.2
3333
@test d.location 3 rtol=0.1
3434
end

0 commit comments

Comments
 (0)