/** * Computes the modified Bessel function of the first kind. Only integer order. * * @method besselI * @memberof ran.special * @param {number} n Order of the Bessel function. Must be an integer. * @param {number} x Value to evaluate the function at. * @return {number} The modified Bessel function of the first kind. * @private */ export declare function besselI(n: number, x: number): number; /** * Computes exp(-|x|) * I_n(x): the exponentially scaled modified Bessel function of the * first kind. I_n(x) itself overflows Number.MAX_VALUE once |x| exceeds ~710, but a caller * whose own prefactor decays like exp(-|x|) can multiply this scaled value back in and * recombine the exponents before either factor is materialized (#1292). * * @method besselIExpScaled * @memberof ran.special * @param {number} n Order of the Bessel function. Must be an integer. * @param {number} x Value to evaluate the function at. * @return {number} exp(-|x|) times the modified Bessel function of the first kind. * @private */ export declare function besselIExpScaled(n: number, x: number): number; /** * Computes log(exp(-x) * I_n(x)): the log-domain analogue of besselIExpScaled, for x >= 0. * exp(-x) * I_n(x) itself can be genuinely non-representable as a double when the order n is * large relative to x (#1321) -- e.g. n=999, x~63.25 evaluates to ~1e-1092, far below * Number.MIN_VALUE -- even though its logarithm is a normal finite number. Delegates to * besselIExpScaled and takes its log whenever that stays representable (bit-for-bit * consistent with the existing function's own precision in the common case); falls back to a * direct log-space series evaluation only when besselIExpScaled underflows to exactly 0. * * @method logBesselIExpScaled * @memberof ran.special * @param {number} n Order of the Bessel function. Must be a non-negative integer. * @param {number} x Non-negative value to evaluate the function at. * @return {number} log(exp(-x) * I_n(x)). * @private */ export declare function logBesselIExpScaled(n: number, x: number): number; /** * Computes the modified spherical Bessel function of the first kind. Only integer order is supported. * Source: http://cpc.cs.qub.ac.uk/summaries/ADGM_v1_0.html (Numerical methods for special functions). * * @method besselISpherical * @memberof ran.special * @param {number} n Order of the spherical Bessel function. Must be an integer. * @param {number} x Value to evaluate the function at. * @returns {number} The modified spherical Bessel function of the first kind. * @throws {Error} If n > 1 and the underlying continued fraction (_hi) fails to converge * within its regime-aware iteration budget. * @private */ export declare function besselISpherical(n: number, x: number): number; /** * Computes exp(-x) * i_n(x): the exponentially scaled modified spherical Bessel function of * the first kind, for x >= 0 -- the only domain the noncentral-chi distributions' sqrt(lambda*x) * argument ever produces. i_n(x) itself overflows once x exceeds ~710; this stays * representable so a caller whose own prefactor decays like exp(-x) can recombine the * exponents before either factor is materialized (#1292). * * @method besselISphericalExpScaled * @memberof ran.special * @param {number} n Order of the spherical Bessel function. Must be an integer. * @param {number} x Non-negative value to evaluate the function at. * @returns {number} exp(-x) times the modified spherical Bessel function of the first kind. * @throws {Error} If n >= 2 and |x| >= 1 and the underlying continued fraction (_hi) fails to * converge within its regime-aware iteration budget. * @private */ export declare function besselISphericalExpScaled(n: number, x: number): number; /** * Computes the modified Bessel function of the second kind. Only integer order. * * @method besselK * @memberof ran.special * @param {number} n Order of the Bessel function. Must be a non-negative integer. * @param {number} x Value to evaluate the function at. * @returns {number} The modified Bessel function of the second kind. * @private */ export declare function besselK(n: number, x: number): number; /** * Computes the modified Bessel function of the second kind for real order. * Uses the connection formula K_ν(x) = (π/2)·(I_{-ν}(x) − I_ν(x))/sin(νπ) (DLMF 10.27.4). * Dispatches to `besselK` for near-integer ν to avoid the 0/0 indeterminate form. * * @method besselKnu * @memberof ran.special * @param {number} nu Order of the Bessel function. Should be fractional. * @param {number} x Value to evaluate the function at. * @returns {number} The modified Bessel function of the second kind. * @private */ export declare function besselKnu(nu: number, x: number): number; export declare function besselInu(nu: any, x: any): number;