package mds

import "gonum.org/v1/gonum/stat/mds"

Package mds provides multidimensional scaling functions.

Index

Functions

func TorgersonScaling

func TorgersonScaling(dst *mat.Dense, eigdst []float64, dis mat.Symmetric) (k int, eig []float64)

TorgersonScaling converts a dissimilarity matrix to a matrix containing Euclidean coordinates. TorgersonScaling places the coordinates in dst and returns it and the number of positive Eigenvalues if successful. Note that Eigen Decomposition is numerically unstable and so Eigenvalues near zero should be examined and the value returned for k is advisory only. If the scaling is not successful, dst will be empty upon return. When the scaling is successful, dst will be resized to k columns wide. Eigenvalues will be copied into eigdst and returned as eig if it is provided.

TorgersonScaling will panic if dst is not empty.

Source Files

doc.go mds.go

Version
v0.15.1 (latest)
Published
Aug 16, 2024
Platform
linux/amd64
Imports
3 packages
Last checked
12 hours ago

Tools for package owners.