Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

piecewiselin

Piecewise linear transformation for distance matrices


Description

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

Usage

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)

See Also

Examples

options(digits=4)
data(waterdist)
piecewiselin(waterdist)

prabclus

Functions for Clustering and Testing of Presence-Absence, Abundance and Multilocus Genetic Data

v2.3-2
GPL
Authors
Christian Hennig <christian.hennig@unibo.it>, Bernhard Hausdorf <Hausdorf@zoologie.uni-hamburg.de>
Initial release
2020-01-06

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.