vdis {EnvNJ} R Documentation

Compute Pairwise Distances Between Vectors

Description

Computes pairwise distances between vectors.

Usage

vdis(cos)


Arguments

 cos a square upper triangular matrix where cos(i,j) is the cosine between the vector i and j.

Details

Cosines are standard measure of vector similarity, and can be converted into distance by dij = -log( (1 + cos(i,j) )/2).

Value

A triangular matrix with the distances.

data(bovids)