Nothing
#' Function to compute the RV coefficient between to conformable matrices
#'
#' @param A a matrix,
#' @param B a second matrix.
#'
#' @return the RV coefficient between A and B.
#' @export
#'
#' @examples
#'
#' A <- toeplitz(2:1)
#' B <- diag(2)
#' rv(A, B)
#' @export
rv <- function (A, B) {
ab <- base::sum(A * B)
aa <- base::sum(A * A)
bb <- base::sum(B * B)
return(ab / base::sqrt(aa * bb))
}
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.