Learn R Programming

protoclass (version 1.0)

dist2: Compute distances between two sets of points

Description

Given (n1)-by-p and (n2)-by-p matrices, computes (n1)-by-(n2) matrix of Euclidean distances

Usage

dist2(x, xx)

Arguments

x
a (n1)-by-p matrix
xx
a (n2)-by-p matrix