piecewiselin | R Documentation |
Piecewise linear transformation for distance matrices, utility
function for geco
.
piecewiselin(distmatrix, maxdist=0.1*max(distmatrix))
distmatrix |
symmetric (non-negative) distance matrix. |
maxdist |
non-negative numeric. Larger distances are transformed to constant 1. |
Transforms large distances to 1, 0 to 0 and continuously linear between 0 and
maxdist
.
A symmetrical matrix.
Christian Hennig christian.hennig@unibo.it https://www.unibo.it/sitoweb/christian.hennig/en
geco
options(digits=4)
data(waterdist)
piecewiselin(waterdist)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.