duration

Methods

Method Reference: duration.kurtosis

duration: k = kurtosis (D)
duration: k = kurtosis (D, flag)
duration: k = kurtosis (D, flag, dim)
duration: k = kurtosis (D, flag, vecdim)
duration: k = kurtosis (D, flag, 'all')

Compute the sample kurtosis of a duration array.

This method overloads the core kurtosis function for duration arrays. The functionality is identical to core kurtosis function. Type help kurtosis for more information.

Note that kurtosis is a dimensionless quantity Thus, the returned argument is a numeric array of double type and not a duration array.

Source Code: duration

Example: 1

kurtosis measures the "tailedness" of the duration distribution — a dimensionless shape statistic, returned as a plain number.

 d = hours ([1, 2, 2, 2, 3, 9])
d =
  1x6 duration array

    1 hr    2 hr    2 hr    2 hr    3 hr    9 hr
 kurtosis (d)
ans = 3.8769