Initializes the cluster prototypes matrix using the alternately selected k objects from the top and bottom of the data set.
a numeric vector, data frame or matrix.
an integer for the number of clusters.
The function combines the
lastk techniques. It takes the first object of the data set as the prototype of first cluster, and then the last object as the prototype of second cluster. This rotating assigment process continues until the prototypes of k clusters are assigned.
an object of class ‘inaparc’, which is a list consists of the following items:
a numeric matrix containing the initial cluster prototypes.
a string representing the type of centroid, which used to build prototype matrix. Its value is ‘obj’ with this function because the cluster prototype matrix contains the objects.
a string containing the matched function call that generates this ‘inaparc’ object.
If the sorted data set is used, the function
topbottom may yield better initializations when compared to the functions
Zeynel Cebeci, Cagatay Cebeci
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.