Description Usage Arguments Details Value Examples
The function centers the sample matrix X to Y and returns Y's distance matrix for futher eigen-decomposition.
1 |
X |
A d by n sample matrix with each column being a sample and each row being a variable. |
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.
A d by d symmetric matrix which is X's distance matrix after centralization.
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.