diameter function

Diameter statistic