Description Usage Arguments Value Examples
View source: R/cosine_x_to_m.R
Cosine vector to matrix
1 | cosine_x_to_m(x, m)
|
x |
numeric vector |
m |
numeric matrix |
vector of cosine similarities between x and m
1 2 3 | vec <- c(1,2,3)
mat <- matrix(c(1,2,3,3,2,1,2,1,3),ncol=3)
cosine_x_to_m(vec,mat)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.