Nothing
rvCoeff <- function(Smat,Tmat, type){
##private function
matrixTrace <- function(squareMatrix){
return(sum(diag(squareMatrix)))
}
#rv = 0
if(sum(dim(Smat) == dim(Tmat)) != 2){
print('Dimensions do not match')
return(NaN)
}
return( as.numeric(matrixTrace(t(Smat) %*% Tmat) / sqrt( matrixTrace(t(Smat) %*% Smat) %*% matrixTrace(t(Tmat) %*% Tmat) )) )
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.