powered by
Random Sample Generation for the exAL Distribution
rexal(n, p0 = 0.5, mu = 0, sigma = 1, gamma = 0)
Numeric vector of length n.
n
Positive integer number of samples to draw (scalar).
Probability level used in the quantile parametrization. Scalar in (0, 1). Default 0.5.
0.5
Location parameter (scalar). Default 0.
0
Scale parameter (scalar, strictly positive). Default 1.
1
Skewness parameter controlling asymmetry (scalar). Must be within valid bounds implied by p0. Default 0.
p0
set.seed(1); length(rexal(10)) rexal(3, p0 = 0.5, mu = c(-1, 0, 1))
Run the code above in your browser using DataLab