F(x) = (x/alpha)^beta, 0 < x < alpha.
Density, distribution function, quantile and draws by inversion of the
morie Philox uniforms (identical in the Python arm).
Usage
PowerDist(x = NULL, alpha = 1, beta = 1, p = NULL, n = 0, seed = 0)
Arguments
- x
Evaluation points.
- alpha
Parameter.
- beta
Parameter.
- p
Probabilities for the quantile function.
- n
Number of random draws.
- seed
Philox seed.
Value
list(pdf, logpdf, cdf, quantile, random).
References
Johnson, Kotz & Balakrishnan (1995). Continuous Univariate Distributions, Vol. 2, ch. 25.
Examples
PowerDist(0.5)$cdf
#> [1] 0.5