dist.get: Compute the Distance between Two Objects based on a 'dist'...

Description Usage Arguments Value

Description

Compute the index into a dist object based on two indexes of objects whose distance should be computed and return the corresponding distance.

Usage

1
dist.get(distObj, i, j, n = .dist.size(distObj))

Arguments

distObj

the instance of dist

i

the first row or column index in the distance matrix

j

the second row or column index in the distance matrix

n

the number of rows/columns of the distance matrix

Value

the distance between the objects at indices i and j


thomasWeise/distanceR documentation built on May 14, 2019, 7:35 a.m.