umap (version 0.2.2.0)

dCenteredPearson: compute pearson correlation distance between two vectors

Description

Pearson distance is (1-r^2)

Usage

dCenteredPearson(x, y)

Arguments

x

numeric vector

y

numeric vector

Value

pearson distance between x and y

Details

Important: this function assumes that data has been centered i.e. that mean(x) = mean(y) = 0