Learn R Programming

SubTS (version 1.0)

getk2: Constant K_2

Description

Evaluates the constant K_2, which is the normalizing constant for f_2.

Usage

getk2(alpha, p)

Value

Returns a positive real number.

Arguments

alpha

Parameter in [0,1).

p

Parameter >1.

Author

Michael Grabchak and Lijuan Cao

Details

Evaluates

K_2 = int_0^1 ( exp(-x^p) - exp(-x) )*x^(-1-alpha) dx.

This is needed to simulate p-RDTS random variables.

References

M. Grabchak (2021). An exact method for simulating rapidly decreasing tempered stable distributions. Statistics and Probability Letters, 170: Article 109015.

Examples

Run this code
 getk2(0.5,2.5)

Run the code above in your browser using DataLab