View source: R/distance_to_covariance.R
distance_to_covariance | R Documentation |
This function takes a distance matrix and turns it into a covariance matrix.
distance_to_covariance(X)
X |
A square and symmetric distance matrix. |
A covariance matrix the same size as X
Rodney J. Dyer rjdyer@vcu.edu
D <- matrix( c(0,7,6,7,7,0,13,8,6,13,0,4,7,8,4,0), nrow=4)
C <- distance_to_covariance(D)
C
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.