wCor_fast: Computes a Weighted Pearson

View source: R/RcppExports.R

wCor_fastR Documentation

Computes a Weighted Pearson

Description

This function calculates weighted Pearson correlation matrix

Usage

wCor_fast(x, w, n_cores)

Arguments

x

The input matrix (dense), where each column represents a set of observations.

w

A vector of weights, one for each observation (must have the same number of elements as rows in 'x').

n_cores

The number of CPU cores to utilize for parallel computation.

Value

A weighted Pearson correlation matrix


khazum/ccImpute documentation built on July 26, 2024, 1:13 a.m.