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)IntegerVector of nearest unique sample indices (1-indexed, length = ClusNum)
NumericMatrix of medoid coordinates in MDS space (ClusNum x mds_dim)
NumericMatrix of sample coordinates in MDS space (nrows x mds_dim)