Finds the best number of clusters according to silhouette
find_best_nr_cluster(
data,
sim,
method_reconstruction = "kmedoids",
method_evaluation = "silhouette",
report = FALSE,
parallel = FALSE,
best = max,
return_all = FALSE,
...
)
The barcode data in a matrix.
A similarity matrix.
The clustering method to use.
The evaluation method to use.
Whether the current progress should be reported. Note that this will not work if parallel is set to TRUE.
Whether the clustering should be performed in parallel.
The method to use to determine the best clustering.
Whether to return the silhouette score for all clusterings.
passed params to evaluating clustering
The R^2 value for rows is1 and is2 in matrix dat