graphclust.manifold.classical_mds#
- graphclust.manifold.classical_mds(D, n_components=2)[source]#
Classical (Torgerson) MDS of a distance matrix.
Double-centers the squared distances, \(\mathbf{B}=-\tfrac12\mathbf{J}\mathbf{D}^{(2)}\mathbf{J}\), and returns the coordinates \(\mathbf{E}_q\boldsymbol{\Lambda}_q^{1/2}\) of the \(q\) largest eigenpairs. For Euclidean distances this equals PCA.