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.1868942 1.0590598 0.4550231 0.5279575 0.5661069 0.5710063 0.8564366
#> [8] 0.4273744 0.4778081 0.3740759