Finds k groups of clusters using the angular distance matrix
Usage
sph_cluster(
x,
k,
method = c("hclust", "kmeans", "diana", "agnes", "pam", "clara", "fanny"),
...
)Arguments
- x
object of class
"Vec3","Line","Ray", or"Plane", where the rows are the observations and the columns are the coordinates.- k
integer. Number of desired clusters.
- method
character. Clustering method to be applied. Currently implemented are
"hclust"Hierarchical Clustering using
stats::hclust(), the default)"kmeans"K-Means Clustering using
stats::kmeans())"pam"Partitioning Around Medoids using
cluster::pam()"agnes"Agglomerative hierarchical clustering using
cluster::agnes()"diana"Divisive hierarchical clustering using
cluster::diana()"clara"Clustering Large Applications using
cluster::clara()"fanny"Fuzzy Analysis Clustering using
cluster::fanny()
- ...
optional arguments passed to cluster algorithm.
