Learn R Programming

MKMeans (version 3.2)

MKMean: Class to contain the results from function MKMeans.

Description

The function MKMeans return object of class MKMean that contains the number of clusters, the center of each cluster, and the observations in each cluster.

Arguments

Objects from the Class

new("MKMean",K=new("numeric"),Centers=new("matrix"),Classes=new("list"),Clusters=new("list"))

Slots

K:

An integer being the number of clusters.

Centers:

A numeric matrix with each row being center of a cluster.

Classes:

An integer list showing the original indexes of the observations in each cluster.

Clusters:

A numeric list showing the observations in each cluster.

Author

Yarong Yang

References

Yarong Yang, Nader Ebrahimi, Yoram Rubin, and Jacob Zhang.(2025) MKMeans: A Modern K-Means Clustering Algorithm. technical report

Examples

Run this code
showClass("MKMean")

Run the code above in your browser using DataLab