distance: Relative Euclidean Distance from Source

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/distance.R

Description

Computes the relative Euclidean distance (i.e., normalized by the respective maxima) of a set of x- and y-coordinates.

Usage

1
distance(x, y)

Arguments

x

x-coordinates of the data

y

y-coordinates of the data

Value

Returns the set of relative distances obtained from 'x' and 'y'.

Author(s)

M. Sammeth <micha@sammeth.net>

References

Ribeca P. and Sammeth M. (under review)

See Also

findP, filter

Examples

1
distance(seq(1,10),seq(1,10))

Example output

Attaching package: 'ops'

The following object is masked from 'package:stats':

    filter

 [1] 0.1414214 0.2828427 0.4242641 0.5656854 0.7071068 0.8485281 0.9899495
 [8] 1.1313708 1.2727922 1.4142136

ops documentation built on May 1, 2019, 7:55 p.m.