R/rhoMatrix-rhocap_of_sigmacap-dot.R

Defines functions .rhocap_of_sigmacap

#' Correlation Matrix from Covariance Matrix
#'
#' @author Ivan Jacob Agaloos Pesigan
#'
#' @param x Numeric matrix.
#'   Covariance matrix.
#' @param q Numeric vector.
#'   Inverse of the standard deviation vector.
#' @family Correlation Functions
#' @keywords rhoMatrix correlation dot
#' @noRd
.rhocap_of_sigmacap <- function(x,
                                q) {
  q * x * rep(
    x = q,
    each = dim(x)[1]
  )
}
jeksterslab/rhoMatrix documentation built on Dec. 20, 2021, 10:11 p.m.