From 92e7886dc7eda8f5ac878a70674c18937fde0a49 Mon Sep 17 00:00:00 2001 From: David Widmann Date: Wed, 18 Jun 2025 15:48:44 +0200 Subject: [PATCH] Remove docstring for `cdf(::Skellam, ::Real)` --- src/univariate/discrete/skellam.jl | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/univariate/discrete/skellam.jl b/src/univariate/discrete/skellam.jl index e55fa4723e..13635ee366 100644 --- a/src/univariate/discrete/skellam.jl +++ b/src/univariate/discrete/skellam.jl @@ -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