ess.reduce.streaming.maybe_hist#

ess.reduce.streaming.maybe_hist(value)[source]#

Convert value to a histogram if it is not already a histogram.

This is the default pre-processing used by accumulators.

Parameters:

value (TypeVar(T)) – Value to be converted to a histogram.

Returns:

TypeVar(T) – Histogram.