Skip to content

Distance computation question on pearson=mdCosine #24

@martabe

Description

@martabe

Hi,

I was going through the code trying to understand exactly how are the different distance metrics calculated (in particular I wanted to understand the difference between using pearson and pearson2).
I may have missed some passages, and forgive me if I did, but in line 97 of the script umap_checks.R I stumbled upon this:

available.metrics <- c(manhattan=mdManhattan, pearson2=mdCenteredPearson, pearson=mdCosine, cosine=mdCosine, euclidean=mdEuclidean)

where pearson=mdCosine.

Is there a reason for pearson and cosine to point at the same function?
Do I understand correctly that metric = pearson will use the mdCosine function to calculate distances?

Thank you for putting together this package, it has worked really well so far :)
Marta

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions