cosine {epos} | R Documentation |
Calculate cosine similarity metric
Description
Calculate cosine similarity metric
Usage
cosine(ainterb, lengtha, lengthb)
Arguments
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 |
Value
cosine double vlaue with the cosine similarity coefficient
Examples
cosine(1,3,4)
[Package epos version 1.1 Index]