Rework the existing flow metrics code so that can handle also a sequence of histogram metrics other than start/end numerator/denominator measures.
Redefine the computation logic so that doesn't work only on 2 values and obtain the mean, but works on a sequence of data not doing necessarily a mean but cam be (like in histogram case) a sum of complex data not just scalar values.