summary: summary

Description Usage Arguments Value

Description

Generates a table to display the cluster labels, the coordinates of the cluster medians, number of points in each cluster, the average distance within the cluster, the maximum distance within the cluster and the minimum distance within the cluster.

Usage

1
summary(X, medians, labels)

Arguments

X

matrix,the dataset being clustered

medians

matrix, coordinates of each cluster median

labels

list, array with the assignment of the cluster for each point in the dataset

Value

dataframe. Returns a dataframe with 6 columns and number of rows will be the number of clusters. The labels of the columns: Cluster labels, Median Coordinates, Number of Points in Cluster, Average Distance, Minimum Distance, Maximum Distance


UBC-MDS/KMediansR documentation built on May 7, 2019, 7:14 p.m.