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

cov,scidb-methodR Documentation

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)

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

## 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)


Paradigm4/SciDBR documentation built on Nov. 9, 2023, 4:58 a.m.