Description Usage Arguments Details Value
Compute soft weighted cosine similarity of two numeric vectors
1 | sftVCosSimilarity(a, b, weights)
|
a |
numeric vector |
b |
numeric vector |
w |
numeric matrix of weights |
a
, b
and c
are expected to have the same length.
Soft cosine similarity allows accounting for (cor)relations between features.
Numeric value of cosine similarity
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.