Computes cosine similarity
Arguments
- x
Numeric vector, matrix, or data frame. If
nrow(x) > 1, thenxwill be treated as a matrix to compute an n by n similarity matrix (ywill not be used!)- y
Numeric vector, matrix, or data frame. Only used if
xis a single variable. Used to compute similarity between one variable and n other variables. Defaults toNULL- ...
Not actually used but makes it easier for general functionality in the package