KMeansCentroid2D() evaluates the rows of the chart by applying k-means clustering, and for each chart row displays the desired coordinate of the cluster this data point has been assigned to. The columns that are used by the clustering algorithm are determined by the parameters coordinate_1, and coordinate_2, respectively. These are both aggregations. The number of clusters that are created is determined by the num_clusters parameter.
KMeansCentroid2D returns one value per data point. The returned value is a dual and is one of the coordinates of the position corresponding to the cluster center the data point has been assigned to.
KMeansCentroid2D(num_clusters, coordinate_no, coordinate_1, coordinate_2)
Return data type: dual
||Integer that specifies the number of clusters.|
||The desired coordinate number of the centroids (corresponding, for example, to the x, y, or z axis).|
||The aggregation that calculates the first coordinate, usually the x-axis of the scatter chart that can be made from the chart. The additional parameter, coordinate_2, calculates the second coordinate.|