Skip to content

Commit

Permalink
implement Gumbel quantile function using xval
Browse files Browse the repository at this point in the history
  • Loading branch information
ajshephard committed May 21, 2024
1 parent 76bcaad commit 3f8b50e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/univariate/continuous/gumbel.jl
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,6 @@ end
cdf(d::Gumbel, x::Real) = exp(-exp(-zval(d, x)))
logcdf(d::Gumbel, x::Real) = -exp(-zval(d, x))

quantile(d::Gumbel, p::Real) = d.μ - d.θ * log(-log(p))
quantile(d::Gumbel, p::Real) = xval(d, -log(-log(p)))

gradlogpdf(d::Gumbel, x::Real) = expm1(-zval(d, x)) / d.θ

0 comments on commit 3f8b50e

Please sign in to comment.