Skip to content

Commit

Permalink
Julia 1.3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
ararslan committed Jun 28, 2024
1 parent 228da0e commit 9d417c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/truncated/lognormal.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function kurtosis(d::Truncated{<:LogNormal})
m3 = mgf(tn, 3)
m4 = mgf(tn, 4)
v = m2 - m1^2
return evalpoly(m1, (m4, -4m3, 6m2, 0, -3)) / v^2 - 3
return @horner(m1, m4, -4m3, 6m2, 0, -3) / v^2 - 3
end

median(d::Truncated{<:LogNormal}) = exp(median(_truncnorm(d)))
Expand Down

0 comments on commit 9d417c7

Please sign in to comment.