Computes the quadratic mean of an array of values.