Nothing
#' Check covariance matrix properties.
#' @description
#' This function checks if the input is a proper covariance matrix, i.e.
#' a symmetric, numeric matrix with non-negative eigenvalues.
#' @param x
#' A matrix.
#' @return
#' A boolean, \code{TRUE} if \code{x} is a proper covariance matrix.
#' @export
#' @keywords
#' helper
is_covariance_matrix = function(x){
is.matrix(x) &&
is.numeric(x) &&
ncol(x) == nrow(x) &&
all(abs(x - t(x)) < sqrt(.Machine$double.eps)) &&
all(eigen(x)$value > -sqrt(.Machine$double.eps))
}
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.