get_f_k: Get the f(K) vector

Description Usage Arguments Value Author(s) See Also Examples

View source: R/pham.R

Description

Get the f(K) vector.

Usage

1
get_f_k(obj)

Arguments

obj

the output of kselection function.

Value

the vector of f(K) function.

Author(s)

Daniel Rodriguez

See Also

num_clusters, num_clusters_all

Examples

1
2
3
4
5
6
7
# 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 f(k) vector
sol <- kselection(dat)
f_k <- get_f_k(sol)

kselection documentation built on May 29, 2017, 9:13 a.m.