View source: R/compute_similarity.R
cosine | R Documentation |
Cosine distance
cosine(vec1, vec2)
vec1 |
test vector |
vec2 |
reference vector |
numeric value of cosine distance between the vectors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.