cosinedist: Compute cosine distance.

Description Usage Arguments Details Value Author(s) See Also

Description

Get cosine distance values for a set of vectors.

Usage

1

Arguments

M

A numeric matrix.

Details

Takes a numeric matrix (M) of arbitrary dimension, treats rows of M as vectors and computes the pairwise cosine distances among the rows of M. Return a matrix of pairwise distances with vector magnitudes on the diagonal.

Value

A matrix with pairwise cosine distances in the lower triangle and vector magnitudes on the diagonal.

Author(s)

Dave Braze davebraze@gmail.com

See Also

dist


davebraze/FDB1 documentation built on May 14, 2019, 8:59 p.m.