cov,scidb-method | R Documentation |
cov
function. It can
only compute a covariance matrix from a data matrix without any missing value
handling by the procedure (in R notation)
S0 <- sweep(x, 2, colMeans(x))
,
crossprod(S0)/(nrow(S0) - 1) # (covariance matrix result)
Covariance matrix
This function is more limited than R's default cov
function. It can
only compute a covariance matrix from a data matrix without any missing value
handling by the procedure (in R notation)
S0 <- sweep(x, 2, colMeans(x))
,
crossprod(S0)/(nrow(S0) - 1) # (covariance matrix result)
## S4 method for signature 'scidb'
cov(x, y = NULL, use = "everything", method = c("pearson", "kendall", "spearman"))
x |
a 2-d scidb array with a single numeric attribute |
y |
UNUSED, limited to correlation matrix in the SciDB case |
use |
UNUSED, limited to "everything" in the SciDB case |
method |
UNUSED, limited to "pearson" in the SciDB case |
covariance matrix of x
(as a SciDB array)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.