duration.skewness
duration: y = skewness (D)
duration: y = skewness (D, flag)
duration: y = skewness (D, flag, dim)
duration: y = skewness (D, flag, vecdim)
duration: y = skewness (D, flag, 'all')
Compute the sample skewness of a duration array.
This method overloads the core skewness function for duration
arrays. The functionality is identical to core skewness function.
Type help skewness for more information.
Note that skewness is a dimensionless quantity Thus, the returned argument is a numeric array of double type and not a duration array.
Source Code: duration
skewness measures the asymmetry of the duration distribution. Being a shape statistic it is dimensionless, so it comes back as a plain number.
d = hours ([1, 1, 1, 2, 3, 8])
d =
1x6 duration array
1 hr 1 hr 1 hr 2 hr 3 hr 8 hr
skewness (d)
ans = 1.4771