Skip to content

Remove docstring for cdf(::Skellam, ::Real) #1986

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

Merged
merged 1 commit into from
Jun 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions src/univariate/discrete/skellam.jl
Original file line number Diff line number Diff line change
Expand Up @@ -91,17 +91,13 @@ function cf(d::Skellam, t::Real)
exp(μ1 * (cis(t) - 1) + μ2 * (cis(-t) - 1))
end

"""
cdf(d::Skellam, t::Real)

#=
Implementation based on SciPy: https://github.com/scipy/scipy/blob/v0.15.1/scipy/stats/_discrete_distns.py

Refer to Eqn (5) in On an Extension of the Connexion Between Poisson and χ2 Distributions, N.L Johnson(1959)
Vol 46, No 3/4, doi:10.2307/2333532
It relates the Skellam and Non-central chisquare PDFs, which is very similar to their CDFs computation as well.

Computing cdf of the Skellam distribution.
"""
=#
function cdf(d::Skellam, t::Integer)
μ1, μ2 = params(d)
return if t < 0
Expand Down
Loading