scalar.dist: Calculate scalar distance

scalar.distR Documentation

Calculate scalar distance

Description

Calculate the scalar distance between elements of a matrix.

Usage

scalar.dist(x, ...)

Arguments

x

A vector of numeric values.

...

Additional arguments, not used at this time.

Details

Take the absolute difference between all elements in a vector, and return a matrix of the distances.

Value

a matrix object

Author(s)

Jake Bowers, http://www.jakebowers.org/, Cole Beck

Examples


scalar.dist(1:10)


nbpMatching documentation built on Sept. 25, 2024, 9:06 a.m.