C.f {MKMeans} | R Documentation |
Finding the center of a cluster.
Description
It's a function of finding the center of a cluster.
Usage
C.f(dat, type)
Arguments
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. |
Value
A vector.
Author(s)
Yi Ya
References
Yarong Yang(Yi Ya) and Jacob Zhang.(2022) MKMeans: A Modern K-Means Clustering Algorithm. submitted to Journal of American Statistical Association
Examples
x<-rnorm(5,0,1)
y<-rnorm(5,1,1)
data<-cbind(x,y)
Res<-C.f(dat=data,type=1)
[Package MKMeans version 2.1 Index]