scalar.dist {nbpMatching}R 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)


[Package nbpMatching version 1.5.5 Index]