Calculate a center for each entry of the vector.