View source: R/nugget-clustering.R
| nugget_cluster | R Documentation |
Cluster a (potentially large) data set by first compressing its observations
into weighted data nuggets (create_data_nuggets), clustering the
nugget centres with a weighted clusterer, and mapping the nugget labels back
to the original observations. This is the clustering analogue of the
data-nugget weighting used by M_ABC and follows
DN.Wkmeans / DN.Whclust from the WCluster package.
nugget_cluster(
data,
k,
method = c("kmeans", "ward"),
max_nuggets = NULL,
nugget_args = list()
)
data |
A numeric matrix (objects in rows) or a precomputed
|
k |
Number of clusters. |
method |
Weighted clusterer for the nugget centres: |
max_nuggets, nugget_args |
Passed to |
A list of class "nugget_cluster" with cluster (labels
for the original objects), nugget_cluster (labels for the nuggets)
and the nuggets object.
Cherasia et al. (2023); Dey et al. (2025), WCluster.
create_data_nuggets, Wkmeans
data(mosaic_toy)
X <- do.call(cbind, mosaic_toy$List) # fuse sources (objects in rows)
fit <- nugget_cluster(X, k = 3, max_nuggets = 30)
table(fit$cluster)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.