add mean for functions, meanabs, and meansq