Learn R Programming

MixStable (version 0.1.0)

integrate_function: Robust integration helper function

Description

Applies `safe_integrate` to a given integrand over a vector of x values.

Usage

integrate_function(f, x, alpha, beta, delta, omega, upper = 50, eps = 1e-08)

Value

Numeric vector of integral values evaluated at each element of x.

Arguments

f

Function. The integrand function to be evaluated.

x

Numeric vector. Observations at which the integral is computed.

alpha

Numeric scalar. Stability parameter of the stable distribution (0 < \(\alpha \le 2\)), controlling tail thickness.

beta

Numeric scalar. Skewness parameter of the stable distribution (\(-1 \le \beta \le 1\)).

delta

Numeric scalar. Location parameter of the stable distribution.

omega

Numeric scalar. Scale parameter of the stable distribution (omega > 0).

upper

Numeric scalar. Upper limit of integration (default = 50).

eps

Numeric scalar. Tolerance for numerical integration (default = 1e-8).