cosineSimilarity | R Documentation |
Row names of two data matrices (mutation contexts) are used for comparison. If the row names do not match completely, the larger set is used as reference with the smaller set expanded with zero-padding.
cosineSimilarity(A, B, diag = FALSE)
A |
Test matrix of dimension |
B |
Reference matrix of dimension |
diag |
Only compare column |
If diag = TRUE
, vector of overlap between columns of A
and columns of B
in one-to-one mapping; if diag = FALSE
,
matrix of dimension (a,b)
, whose elements give overlap of column
a
in matrix A
with column b
in matrix B
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.