Learn R Programming

KQM (version 1.1.1)

KQMobj: Class to contain the results from function KQM.

Description

The function KQM returns object of class KQMobj that contains the number of clusters, centers of clusters, positions of observations in each cluster, the observations in each cluster, and the sum squares of distances in each cluster and all the clusters.

Arguments

Objects from the Class

new("KQMobj",K=new("numeric"),DM=new("matrix"),Centers.ix=new("vector"),Centers=new("matrix"),Classes=new("list"),Clusters=new("list"),SSE=new("numeric"))

Slots

K:

An integer being the number of clusters.

DM:

A numeric matrix with the element of the i-th row and the j-th column being the distance between the i-th object and the j-th object.

Centers.ix:

An integer vector showing the original positions of the cluster centers.

Centers:

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

Classes:

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

Clusters:

A numeric list showing the observations in each cluster.

SSE:

A numeric vector composed of SSE of each cluster and the total SSE of all the clusters.

Author

Yarong Yang

References

Yarong Yang, Nader Ebrahimi, Yoram Rubin, and Jacob Zhang.(2025) K Quantiles Medoids (KQM) Clustering. technical report in preparation

Examples

Run this code
showClass("KQMobj")

Run the code above in your browser using DataLab