Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GEV distribution pdf NAN #1912

Open
daniellincke opened this issue Nov 8, 2024 · 0 comments
Open

GEV distribution pdf NAN #1912

daniellincke opened this issue Nov 8, 2024 · 0 comments

Comments

@daniellincke
Copy link

daniellincke commented Nov 8, 2024

julia version 1.11.1

Pkg.status("Distributions")
Status ~/.julia/environments/v1.11/Project.toml
[31c24e10] Distributions v0.25.112

Example:
julia> mygev = GeneralizedExtremeValue{Float64}(0.8823000013828277, 0.000969122238466848, 0.0)
GeneralizedExtremeValue{Float64}(μ=0.8823000013828277, σ=0.000969122238466848, ξ=0.0)

julia> pdf(mygev,0.0)
NaN

julia> pdf(mygev,0.1)
NaN

julia> pdf(mygev,0.2)
0.0

julia> pdf(mygev,0.8)
0.0

julia> pdf(mygev,0.9)
1.2069503373766055e-5

There should be no NaN as result of the pdf computation in this example (support is (+inf,-inf) is this case).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant