projectToIndex_cpp: Project MDS coordinates to nearest unique sample indices

View source: R/RcppExports.R

projectToIndex_cppR Documentation

Project MDS coordinates to nearest unique sample indices

Description

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).

Usage

projectToIndex_cpp(medoid_coords, Z)

Arguments

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)

Value

IntegerVector of nearest unique sample indices (1-indexed, length = ClusNum)


WOAkMedoids documentation built on Feb. 18, 2026, 5:06 p.m.