#' Check validity of B
#'
#' @importFrom pracma sqrtm
#'
#' @export
valid_B <- function(zeta = NULL,
D = NULL,
W = NULL)
{
xi <- eigen(pracma::sqrtm(D)$Binv %*% W %*% pracma::sqrtm(D)$Binv)$values
return((1/min(xi) < zeta) && (zeta <= 1))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.