In mathematics and physics, the centroid or geometric center of a plane figure is the arithmetic mean (“average”) position of all the points in the shape.
The definition extends to any object in n-dimensional space: its centroid is the mean position of all the points in all of the coordinate directions.
Procedure:
Compute the mean (\(\mu_c\)) of all the vectors in class C and the mean (\(\mu_x\)) of all the vectors not in C.