Skip to content

Commit bcc7819

Browse files
committed
using sinc
1 parent bf205c5 commit bcc7819

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/univariate/continuous/loglogistic.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function mean(d::LogLogistic{T}) where T<:Real
5454
if d.β 1
5555
ArgumentError("mean is defined only when β > 1")
5656
end
57-
return d.α*π/d.β/sin/d.β)
57+
return d.α/sinc(1/d.β)
5858
end
5959

6060
function mode(d::LogLogistic{T}) where T<:Real

0 commit comments

Comments
 (0)