| fitnessFunction_cpp | R Documentation |
Combines cluster assignment and total distance calculation. Returns Inf if any cluster has fewer than 2 members.
fitnessFunction_cpp(dist_vec, nrows, medoids)
dist_vec |
Distance vector (from dist object) |
nrows |
Number of rows in the original data |
medoids |
Integer vector of medoid indices (1-indexed) |
total_dist (double), Inf if invalid clustering
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.