mms

package module
v0.0.0-...-cbcf517 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2018 License: MIT Imports: 3 Imported by: 0

README

metric-multidimensional-scaling

Golang implementation of metric multidimensional scaling via the SMACOF algorithm for stress majorization.

Dependencies

This library requires gonum.org/v1/gonum/... in addition to the standard library.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MMS

type MMS struct {
	// contains filtered or unexported fields
}

func NewMMS

func NewMMS(nComponents, maxIter int, epsilon float64) *MMS

func (*MMS) FitTransform

func (mms *MMS) FitTransform(d *mat.SymDense) (*mat.Dense, float64)

FitTransform takes an n * n dissimilarity matrix d and and returns an n * MMS.r matrix of n points in r-dimensional space with distances between ith and jth points close to n[i][j] along with the final minimum value of the stress function.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL