Learn R Programming

segmenTier (version 0.1.2)

myPearson: Pearson product-moment correlation coefficient

Description

Incremental calculation of the Pearson correlation coefficient between two vectors for calculation within Rcpp functions clusterCor_c.

Usage

myPearson(x, y)

Arguments

x

numeric vector

y

numeric vector

Details

Simply calculates Pearson's product-moment correlation between vectors x and y.