Vectorization of centeroids

According to assigment 1.a the phase samples should be vectorized
I think what is meant is that the s vector of eq 2.8 should be created.