Initialization of cluster prototypes using the top and bottom objects
Initializes the cluster prototypes matrix using the alternately selected k objects from the top and bottom of the data set.
topbottom(x, k)
x |
a numeric vector, data frame or matrix. |
k |
an integer for the number of clusters. |
an object of class ‘inaparc’, which is a list consists of the following items:
v |
a numeric matrix containing the initial cluster prototypes. |
ctype |
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. |
call |
a string containing the matched function call that generates this ‘inaparc’ object. |
Zeynel Cebeci, Cagatay Cebeci
data(iris) res <- topbottom(x=iris[,1:4], k=5) v <- res$v print(v)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.