eigen_centered: Sample Matrix Centralization for Eigen-decomposition

Description Usage Arguments Details Value Examples

View source: R/mmds.R

Description

The function centers the sample matrix X to Y and returns Y's distance matrix for futher eigen-decomposition.

Usage

1

Arguments

X

A d by n sample matrix with each column being a sample and each row being a variable.

Details

The sample matrix X is a d by n matrix, where d is the dimension of each observed data point and n is the number of such data points. The output S will be a d by d symmetric matrix.

Value

A d by d symmetric matrix which is X's distance matrix after centralization.

Examples

1
2
3
4
5
6
set.seed(496)
n = 10
d = 20
X = matrix(rnorm(d * n), n, d)
S = eigen_centered(X)
S

chenqi57/MMDS documentation built on Aug. 20, 2021, 6:34 p.m.