Returns the value that is repeated the most times in a specified interval. If no value is repeated, then the current value is returned by default.

If a tie occurs, the latest occurring set of values is returned.

For example, if the recent values are [8, 5, 5, 3, 6, 6], then the output will be 6. If a 3 is the next measured value, then 3 will become the next output.

CountRepeat will output how many times the MaxRepeat value occurs in the interval.



Input Data*

Defines the time series data fed into the function. This can be a sensor ID or another function.


Number of data intervals considered in the function

Round Decimal

Values are rounded to the specified decimal. For example, "0" rounds to the nearest whole number, while "1" rounds to the tenths digit.

*Input data is optional in most cases. If Info360 detects that the first input is time series data, it will be applied to the function. Otherwise, the current active sensor's data will be used, which is often the case in Reference Charts.

Example Usage as an Expression:

MaxRepeat(10,1): Identifies the value rounded to the tenths digit repeated the most within the last 10 intervals.

Example Reference Chart:

The following chart shows tank levels rounded to the nearest whole value alongside the max repeated value and the corresponding count of repeated values. During the filling of the tank, no repeat values occur. By the peak tank level, the CountRepeat drops to 1 and the MaxRepeat matches the measured value.

For information on setting up custom equations and syntax, please refer to Analytical Functions.