Implemented computing of the "mean" value.