Skip to content
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