piecewiselin: Piecewise linear transformation for distance matrices

Description Usage Arguments Details Value Author(s) See Also Examples

Description

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

Usage

1
piecewiselin(distmatrix, maxdist=0.1*max(distmatrix))

Arguments

distmatrix

symmetric (non-negative) distance matrix.

maxdist

non-negative numeric. Larger distances are transformed to constant 1.

Details

Transforms large distances to 1, 0 to 0 and continuously linear between 0 and maxdist.

Value

A symmetrical matrix.

Author(s)

Christian Hennig chrish@stats.ucl.ac.uk http://www.homepages.ucl.ac.uk/~ucakche

See Also

geco

Examples

1
2
3


Search within the prabclus package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? 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.