Density, (cumulative) distribution function and random generation for inverse-gaussian distribution.
Usage
density_inverse_gaussian(shape, scale, x)
cdf_inverse_gaussian(shape, scale, x)
random_inverse_gaussian(shape, scale, n)Value
numeric vector
The functions density_XXX and cdf_t return numeric vectors of same length as x.
The functions random_XXX return random number (numeric vectors) of length n.
Examples
density_inverse_gaussian(shape = 1, scale = 2, x = 1:10)
#> [1] 5.641896e-01 1.209854e-01 2.862094e-02 7.433143e-03 2.056969e-03
#> [6] 5.951656e-04 1.779359e-04 5.454267e-05 1.705081e-05 5.415515e-06
random_inverse_gaussian(shape = 1, scale = 2, n = 10)
#> [1] 1.2966012 2.7433178 0.5374591 0.7630222 0.6500517 0.4545077 1.5949448
#> [8] 0.6317477 0.3588705 4.3060730