clusterRange {MOMA}R Documentation

Cluster Range

Description

This function generate an cluster structure with 'k' groups and computes the cluster reliability score where 'k' is a range of values

Usage

clusterRange(
  dis,
  range = c(2, 100),
  step = 1,
  cores = 1,
  method = c("pam", "kmeans"),
  data = NULL
)

Arguments

dis

Distance object

range

vector with start and end 'k'

step

Integer indicating the incremental number of clusters to add in each iteration

cores

Maximum number of CPU cores to use

method

Either 'pam' k-mediods or kmeans. Must supply the original data matrix if using kmeans

data

Original data matrix

Value

list of cluster reliability scores by 'k', 'clustering' (the vector solution) and 'reliability' as well as 'medoids' labels


[Package MOMA version 1.5.0 Index]