distEq: Pairwise Distance from Regularly Distributed Points

View source: R/utilities.R

distEqR Documentation

Pairwise Distance from Regularly Distributed Points

Description

This function return a distance (or proximity) matrix between n points regularly distributed in 1 dimension.

Usage

distEq(n, prox = FALSE)

Arguments

n

the number of points

prox

a logical indicating whether to return a matrix of proximity. Default to FALSE so the function returns the matrix of distance.

Value

A squared matrix. A matrix of class dist if prox is set to FALSE.

Examples

x <- distEq(5)

phylosignal documentation built on Oct. 12, 2023, 5:13 p.m.