Description Usage Arguments Details Note Author(s) References See Also Examples
Calculates incomplete BesselK functions by evaluating explicit
expressions for the lower and upper incomplete BesselK in terms
of the complementary error function by calling CalIncLapInt
.
1 | besselK_inc_err(x, z, lambda, bit, lower = FALSE)
|
x |
Argument, |
z |
Argument, |
lambda |
Argument, λ = \pm(j + \frac{1}{2}) with j = 0, 1, 2, …. |
lower |
Logical. Lower incomplete Bessel function
is calculated if |
bit |
Precision bit. A positive integer greater or equal 100. |
One of the integral representations of the lower incomplete BesselK is given by
\widehat K_{λ}(z, x) = \frac{1}{≤ft(2z\right)^{λ}}\,\int_0^x\, e^{-≤ft\{z^2\,ξ^2 \,+\, 1/(4\, ξ^2)\right\}}\, ξ^{-2λ -1}\, dξ,
which appears in the distribution function of the generalized inverse Gaussian distribution, see Barndorff-Nielsen(1977).
Currently, analytical formulae for the incomplete
BesselK functions are not available for any value
of lambda
.
Thanh T. Tran frmqa.package@gmail.com
Barndorff-Nielsen, O. E (1977) Exponentially decreasing distributions for the logarithm of particle size. Proceedings of the Royal Society of London. Series A, 353, 401–419.
Olver, F.W.J., Lozier, D.W., Boisver, R.F. and Clark, C.W (2010) Handbook of Mathematical Functions. New York: National Institute of Standards and Technology, and Cambridge University Press.
Tran, T. T., Yee, W.T. and Tee, J.G (2012) Formulae for the Extended Laplace Integral and Their Statistical Applications. Working Paper.
Watson, G.N (1931) A Treatise on the Theory of Bessel Functions and Their Applications to Physics. London: MacMillan and Co.
besselK_inc_clo
, gamma_inc_clo
, pgig
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Accuracy tests
x <- 2
z <- 5
lambda <- -c(1/2, 3/2)
lower <- sapply(lambda, function(w.)
besselK_inc_err(x, z, lambda = w., 200, lower = TRUE))
upper <- sapply(lambda, function(w.)
besselK_inc_err(x, z, lambda = w., 200, lower = FALSE))
## sum of two parts
(lower + upper)
## equals the whole function
(besselK(z, nu = lambda))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.