Similarity counterparts of distances
, which see. Generally
similarities are computed from their distance counterparts through
s=1-d
or s=1/(1+d)
, but this need not always be the case. See
the source code for the exact computation.
1 2 3 4 5 |
x |
sparse or dense objects supported by |
y |
sparse or dense objects supported by |
ptrans |
Primary and secondary transformations. Can be either a
function, string or a numeric vector. When a function, it must take 3
arguments - an object supported by |
strans |
Primary and secondary transformations. Can be either a
function, string or a numeric vector. When a function, it must take 3
arguments - an object supported by |
by |
Dimension along which to perform distance computation. For all supported data structures computation along primary dimension is more or as efficient than along the secondary dimension. |
ref_names |
reference names for secondary entries. By default both
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.