wCorDist: Computes a weighted Pearson distance measure matrix. If ranks...

View source: R/RcppExports.R

wCorDistR Documentation

Computes a weighted Pearson distance measure matrix. If ranks are used this measure turns into weighted Spearman distance measure matrix.

Description

Computes a weighted Pearson distance measure matrix. If ranks are used this measure turns into weighted Spearman distance measure matrix.

Usage

wCorDist(x, w, useRanks, n_cores)

Arguments

x

input with columns containing each observation

w

weights for all values in a obervation

useRanks

indicates if Pearson should be computed on weighted ranks.

n_cores

number of cores to use for parallel computation.

Value

weighted Pearson distance measure matrix. If ranks are used this measure turns into weighted Spearman distance measure matrix.


khazum/ccImpute documentation built on Nov. 28, 2022, 7:27 a.m.