Learn R Programming

mstknnclust (version 0.3.1)

generate.results: Generates clustering results

Description

This function performs the union the all component connected (cc) yield in each recursion of the MST-kNN algorithm.

Usage

generate.results(g_clusters, distance.matrix)

Value

A list with the elements

cnumber

A numeric value representing the number of clusters of the solution.

cluster

A named vector of integers of size n with values in range 1:cnumber, representing the cluster to which each object is assigned.

partition

A partition matrix order by cluster where are shown the objects and the cluster where they are assigned.

csize

A vector of size k with the cardinality of each cluster in the solution.

network

An object of class "igraph" as a network representing the clustering solution.

Arguments

g_clusters

A object of class igraph containing all component connected (cc=1).

distance.matrix

A numeric matrix or data.frame with equals names and numbers of rows and columns representing objects to group.