## Calculating centroid example

Calculate the centroid or mean of all objects in each cluster. K-means is relatively an efficient method. From this we can then apply the formulas as above to calculate x-bar and y-bar for the co-ordinates of the centroid. We need to ensure that the distance from the datum to the centre of the shape runs through all of the composite shape.

Here are the series of steps in solving for the centroid of any compound shape. Solutions for the example problem from the topic of centroid of composite bodies for the statics course. In geometric decomposition, dividing the complex figure z is the fundamental step in calculating the centroid. For example, in a rectangle the average of all points in the shape is dead center, as shown in figure 1 below.

Step-by-step procedure in solving for the centroid of compound shapes. En 1991-1-4 wind load calculation example. Now we will calculate the distance to the.

The average position of all points, or centroid, of a rectangle is precisely in the center of the shape. Local centroids from the y-axis we are. Given a figure z, obtain the centroid ci and area ai of each zn part wherein all holes that extend outside the compound shape are to be treated as negative values.