Minimum pairwise distance within a selection (T_k = k-centre objective)
Source:R/score.R
TkScore.RdReturns the minimum pairwise distance among selected points, the canonical k-centre objective \(T_k\). Higher values indicate a more spread-out (better) selection.
Arguments
- d
Pairwise distance matrix or
distobject. Ignored whenpointsis supplied.- idx
Integer vector of selected row/col indices.
- points
Optional
N x dimnumeric coordinate matrix. When supplied, the score is computed fromstats::dist()on the selected sub-coordinates only (k x k), never the fullN x Nmatrix (dis then unused). For Euclidean data the result is identical to the matrix path.