docs / it.uniroma3.dbtree.spi.impl.functions / AverageInt / h

h

fun h(a: Pair<Long, Long>?): Long (source)

Generates a final result from an aggregate value.

E.g.: in the case of arithmetic mean, a = <c,s> (the element count and their sum) h(a) = s/c (the arithmetic mean itself).

Parameters

a - the aggregate value.

Return
the final result.