Nearest neighbor based clutter/noise detection

Piecewise linear transformation for distance matrices, utility
function for `geco`

.

1 | ```
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 chrish@stats.ucl.ac.uk http://www.homepages.ucl.ac.uk/~ucakche

1 2 3 | ```
options(digits=4)
data(waterdist)
piecewiselin(waterdist)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.