distEq: Pairwise Distance from Regularly Distributed Points

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

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

Usage

1
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

1
x <- distEq(5)

phylosignal documentation built on May 19, 2017, 11:11 p.m.

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

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.