The function returns the average value from statistic object. In case of count value ( x0 ) is less than 1, the function returns 0.