721
edits
Line 52: | Line 52: | ||
To calculate a centroid of a collection of points (our cluster) we need to do two steps: | To calculate a centroid of a collection of points (our cluster) we need to do two steps: | ||
* sum up our points: | |||
p0 + p1 + p2 + p3 ... = sum | |||
* divide the sum by out number of point: | |||
centroid = sum / num_of_points | |||
== Example Centroid Calculation == | == Example Centroid Calculation == |