cov: Covariance matrix This function is more limited than R's...

Description Usage Arguments Value

Description

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)

Usage

1
2
## S4 method for signature 'scidb'
cov(x, y = NULL, use = "everything", method = c("pearson", "kendall", "spearman"))

Arguments

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

Value

covariance matrix of x (as a SciDB array)


scidb documentation built on Aug. 12, 2020, 5:08 p.m.