histogram

class maze.core.log_stats.reducer_functions.histogram(values: List[int | float] | List[List[int | float]] | List[ValuesView])
the histogram reducer function

We decided to return the full list, rather then binning the values (e.g. collections.Counter), so that float values are supported as well.

Parameters:

values – A list of values collected by the event system

Returns:

returns the same list of values so that a histogram can then be build from it