Added computation of mean output activation