Get common moment-related quantities of a distribution: mean, variance, standard deviation (sd), skewness, and kurtosis.
Distribution to compute skewness from.
Distribution to calculate median from.
When calculating the mean via integration of the quantile
function, arguments passed to
A single numeric.
If there is no method associated with a subclass of
x, then moments are calculated using
stats::integrate() from the quantile function.
Median is calculated as the 0.5-quantile. So, when the median is non-unique, we take the smallest of the possibilities.