FindClustersAuto: Automatically find cluster assignment given f and delta.

Description Usage Arguments Value Author(s)

View source: R/FindClustersAuto.R


This is the subroutine that automatically finds cluster assignments from given f and delta by testing various parameter settings and find the one that maximizes the silhouette.


FindClustersAuto(distm, f, delta, ac = 1, nclust = 2:10, f.cut = c(0.1,
  0.2, 0.3))



the distance matrix


vector of local distance f(x). See the help of adpclust() for details.


vector of minimal distances to higher ground delta(x). See the help of adpclust() for details.


type of auto selection. The valid options are 1 and 2. See the help of adpclust() for details.


number of clusters to test. Either a single integer or a vector of integers.


number between (0, 1) or numeric vector of numbers between (0, 1). Data points whose f values are larger than f.cut with large delta values are selected as centers. The default is c(0.1, 0.2, 0.3). See the help of FindCentersAutoV() for more details.


list of four elements:

  • clusters Cluster assignments. A vector of the same length as the number of observations.

  • centers: Indices of the clustering centers.

  • silhouette: Silhouette score from the final clustering result.

  • nclust: Number of clusters.


Ethan Xu

ADPclust documentation built on May 19, 2017, 10:25 p.m.
Search within the ADPclust package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.