timeseries

Methods

Method Reference: timeseries.mode

timeseries: v = mode (ts)

timeseries: v = mode (ts, name, value, …)

Return the mode of a series over time.

v = mode (ts) returns the most frequent value of each data element over time, the smallest on a tie, so v has the size of one sample; with 'time' weighting it is the value of most total weight. v keeps the class of the data, and is [] for a series with no samples. Where a value is left without samples it is NaN, and v is then double, as integer and logical classes hold no NaN.

The options, and where MATLAB differs, are given under timeseries.mean.

See also: timeseries.mean, timeseries.median

Source Code: timeseries