| projectToIndex_cpp | R Documentation |
Finds the nearest sample in the MDS embedded space for each medoid coordinate, while enforcing a one-to-one mapping between medoids and samples (no duplicates).
projectToIndex_cpp(medoid_coords, Z)
medoid_coords |
NumericMatrix of medoid coordinates in MDS space (ClusNum x mds_dim) |
Z |
NumericMatrix of sample coordinates in MDS space (nrows x mds_dim) |
IntegerVector of nearest unique sample indices (1-indexed, length = ClusNum)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.