cosine: Calculate cosine similarity metric

Description Usage Arguments Value Examples

Description

Calculate cosine similarity metric

Usage

1
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

1
2
3
4
## Not run: 
cosine(1,3)

## End(Not run)

ZBMEDLABS/epilepsyontologysimilarities documentation built on Aug. 23, 2019, 1:18 p.m.