| dist2sim | R Documentation |
Converts distance objects into similarity objects.
dist2sim(dist, transform, k = 1, normalise = TRUE, max_d)
dist |
object of class |
transform |
object of class |
k |
scaling parameter |
normalise |
object of class |
max_d |
object of class |
Distances can be transformed either *linearly* or *exponentially*. That is
1 - k * dist for non-negative values, or exp(-k * dist),
respectively. If normalise is true, then dist = dist/max_d.
dist2sim(x) returns an object of class similarity.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.