powered by
Converts Gram class object into D2 class object
Gram
D2
GtoD2(G)
An object of class D2 containing the squared distances matrix between individuals.
Gram class object. Weighted centered inner products matrix of the squared distances matrix.
Boj, Eva <evaboj@ub.edu>, Caballe, Adria <adria.caballe@upc.edu>, Delicado, Pedro <pedro.delicado@upc.edu> and Fortiana, Josep <fortiana@ub.edu>
D2toG disttoD2 D2toDist
D2toG
disttoD2
D2toDist
X <- matrix(rnorm(100*3),nrow=100) D2 <- as.matrix(dist(X)^2) class(D2) <- "D2" G <- D2toG(D2,weights=NULL) class(G) <- "Gram" D22 <- GtoD2(G)
Run the code above in your browser using DataLab