Piecewise linear transformation for distance matrices
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.
options(digits=4) data(waterdist) piecewiselin(waterdist)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.