make_mds_matrices: Computes MDS representation and other associated values

View source: R/mdessence-functions.R

make_mds_matricesR Documentation

Computes MDS representation and other associated values

Description

Computes MDS representation and other associated values

Usage

make_mds_matrices(X = NULL, dist_fn = NULL, dist_mat = NULL)

Arguments

X

A samples x variables data matrix

dist_fn

A function that computes the distances between the rows of Y.

dist_mat

If this argument is non-null, use it as the distance matrix instead of calling dist_fn on the rows of X.

Value

A list, containing - delta: Matrix of squared distances. - jdj: Row- and column-centered -.5 * delta - d2: The diagonal elements of jdj - Y: The embeddings of the samples in the MDS space. - Lambda: The eigenvalues of jdj. - X: The original data.


jfukuyama/localBiplots documentation built on Jan. 10, 2023, 3:33 a.m.