generic cosine similarity function
1 |
x |
numeric (vector or matrix) |
y |
if x is numeric vecor, y has to be numeric vector of the same length |
weights |
numeric; weights for weighted or soft cosine similarity |
complete |
logical; if FALSE (default) only upper triangle of the similarity matrix is computed |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.