duration

Methods

Method Reference: duration.histcounts

duration: N = histcounts (D)
duration: N = histcounts (D, nbins)
duration: N = histcounts (D, edges)
duration: N = histcounts (…, Name, Value)
duration: [N, edges] = histcounts (…)
duration: [N, edges, bin] = histcounts (…)

Histogram bin counts for durations.

N = histcounts (D) bins the durations in D, chosen automatically, and returns the number of elements in each bin. D is treated as D(:) and NaN durations are excluded.

N = histcounts (D, nbins) and N = histcounts (D, edges) bin by count and by explicit duration edges respectively.

'BinWidth' takes a scalar duration, 'BinLimits' a two-element duration, and 'BinEdges' a duration vector. 'BinMethod' accepts 'auto', 'scott', 'fd', 'sturges' and 'sqrt', but not 'integers', which has no meaning for a duration.

'Normalization' accepts 'count', 'cumcount', 'probability', 'percentage' and 'cdf'. 'countdensity' and 'pdf' are not accepted, since a density per unit time has no meaning here.

See also: discretize, histcounts

Source Code: duration