num_clusters_all: Get all recommended numbers of clusters

View source: R/pham.R

num_clusters_allR Documentation

Get all recommended numbers of clusters

Description

The number of cluster which could be recommender according the method threshold.

Usage

num_clusters_all(obj)

Arguments

obj

the output of kselection function.

Value

an array of number of clusters that could be recommended.

Author(s)

Daniel Rodriguez

See Also

num_clusters, get_f_k

Examples

# Create a data set with two clusters
dat <- matrix(c(rnorm(100, 2, .1), rnorm(100, 3, .1),
                rnorm(100, -2, .1), rnorm(100, -3, .1)), 200, 2)

# Get the optimal number of clustes
sol <- kselection(dat)
k   <- num_clusters(sol)


kselection documentation built on May 17, 2022, 1:07 a.m.