distances: Distances~~

Description Usage Arguments Value Author(s)

Description

Calculates the squared euclidean distances between all rows of a matrix.

Usage

1
distances(data, defined)

Arguments

data

A matrix, containing data as rows.

defined

A vector, containing 1 for all columns of data to be used and other values for all columns to be discarded.

Value

dd

A matrix containing the distances between the rows of data.

dv

A vector of the upper triangular distance matrix.

Author(s)

Raphael Paebst


Mthrun/Distances documentation built on Feb. 4, 2020, 8:39 p.m.