give.thresh: Compute the maximum distance of the minimum spanning tree...

give.threshR Documentation

Compute the maximum distance of the minimum spanning tree based on a distance matrix

Description

It is used to select a truncation value for the dbMEM approach. It returns the minimum value that keep all samples connected.

Usage

give.thresh(matdist)

Arguments

matdist

A distance matrix (class dist or matrix)

Value

The maximum distance in the minimum spanning tree.

Author(s)

Stéphane Dray stephane.dray@univ-lyon1.fr

Examples

xy <- matrix(rnorm(60),30,2)
dxy <- dist(xy)
th <- give.thresh(dxy)

adespatial documentation built on Sept. 11, 2024, 7:04 p.m.