Description Usage Arguments Value Examples
For a given matrix, will create a cosine similarity matrix. Used as an
internal function for cosine_sim()
1 | cosine_sim_mat(X, ...)
|
X |
matrix |
... |
optional arguments to sum (i.e na.rm = TRUE) |
C cosine similarity matrix
1 2 3 4 | # example data
mat <- iris[,1:4]
out <- cosine_sim_mat(mat)
image(out)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.