cosineSim: Computes the cosine similarity between two vectors

View source: R/helperFx.R

cosineSimR Documentation

Computes the cosine similarity between two vectors

Description

Computes the cosine similarity between two vectors.

Usage

cosineSim(A, B)

Arguments

A

One vector in the pair to compare.

B

The other vector in the pair to compare.

Value

A numeric value, the cosine similarity between vectors A and B

References

https://stats.stackexchange.com/q/31573/


BaderLab/scClustViz documentation built on Sept. 10, 2023, 11:51 p.m.