C.f {MKMeans} | R Documentation |
It's a function of finding the center of a cluster.
C.f(dat, type)
dat |
Numeric. A cluster matrix with each row being an observaion. |
type |
Integer. The type of distance between observations. 1 for Euclidean distance. 2 for Manhattan distance. 3 for maximum deviation along dimensions. |
A vector.
Yarong Yang
Yarong Yang and Jacob Zhang.(2024) MKMeans: A Modern K-Means Clustering Algorithm.
x<-rnorm(5,0,1)
y<-rnorm(5,1,1)
data<-cbind(x,y)
Res<-C.f(dat=data,type=1)