divide sum to get mean in yarr