getMeanMaxWeight function

Calculate the mean maximum weight of the community