Skip to main content
. 2021 Dec 17;21(24):8445. doi: 10.3390/s21248445
Algorithm 2: Midpoint method for initial CH nomination
Input:
X = consists of a total n number of data points.
Copt = optimal cluster density
Output:
initial centroids of the Copt clusters.
Steps:
1: Origin (xo,y0), Data point i (xi,yi)
For i = 1:n
li=xoxi2+y0yi2
end
2: Sort (l)
3: n/Copt.
4: The middle point value of each set is considered as the initial centroid.