Description Usage Arguments Value
View source: R/clustering_algorithms.R
This function is a wrapper to pam
in the package cluster.
1 |
X |
data matrix or data frame of size n x d, n observations and d features |
k |
number of clusters |
... |
additional parameter for pam function |
list of 3 components:
cluster
vector of integer between 1 and k containing the allocation of each point
centers
matrix (d x k) of the centers of each cluster
predict
function predicting to which cluster an observation belongs. The prediciton is done with the k-nearest neighbours function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.