cosine | R Documentation |
Calculate cosine similarity metric
cosine(ainterb, lengtha, lengthb)
ainterb |
integer value with number of intersecting elements between set a and b |
lengtha |
integer value with the number of items in set a |
lengthb |
integer value with the number of items in set b |
cosine double vlaue with the cosine similarity coefficient
cosine(1,3,4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.