dot-calcTol: Automatically calculate tolerance for null model point...

.calcTolR Documentation

Automatically calculate tolerance for null model point randomization

Description

This function takes a triangular or rectangular distance matrix representing pairwise distances between points and calculates a tolerance value for spatial randomizations of points meant to reflect the spatial autocorrelation inherent in the observed points. It is meant as a helper function for the family of randPoints--- functions.

Usage

.calcTol(dists, removeTopRow)

Arguments

dists

Either a lower-triangular square matrix (with the diagonal set to NA) or a rectangular matrix. Values represent pairwise distances between points.

removeTopRow

Logical, if TRUE then remove the top row of the dists matrix before calculating summary statistics. If the matrix is lower-triangular and the diagonal is NA then retaining the top row will cause a warning. This value should be FALSE if dists is a rectangular matrix or otherwise not triangular!

Details

Tolerance is calculated as half of the value of minimum pairwise distances that are >0.

Value

Numeric.


adamlilith/enmSdm documentation built on Jan. 6, 2023, 11 a.m.