powered by
Computes the absolute moment of order k of a sample of observations.
compute_absolute_moment(obs, k)
Moment value (type: double)
Observations (type: armadillo numeric vector).
Moment order (type: double)
rvs <- stabledist::rstable(100000, 1.9, 0.5, 1, 0, pm = 0) absolute_moment <- compute_absolute_moment(rvs, 2)
Run the code above in your browser using DataLab