powered by
Piecewise linear transformation for distance matrices, utility function for geco.
geco
piecewiselin(distmatrix, maxdist=0.1*max(distmatrix))
A symmetrical matrix.
symmetric (non-negative) distance matrix.
non-negative numeric. Larger distances are transformed to constant 1.
Christian Hennig christian.hennig@unibo.it https://www.unibo.it/sitoweb/christian.hennig/en
Transforms large distances to 1, 0 to 0 and continuously linear between 0 and maxdist.
maxdist
options(digits=4) data(waterdist) piecewiselin(waterdist)
Run the code above in your browser using DataLab