Calculates Euclidean distance of matrix of coordinates
计算欧几里德距离矩阵坐标
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Calculates Euclidean distance of coords matrix of coordinates. Each row of the coords matrix is assumed to be a distinct coordinate.
coords矩阵坐标计算欧氏距离。 coords矩阵的每一行被假定为是一个鲜明的坐标。
用法----------Usage----------
dist1(coords)
参数----------Arguments----------
参数:coords
A matrix of dimensions nr\times nc
矩阵尺寸nr\times nc
值----------Value----------
dist1 returns a matrix of size nr\times nr containing the Euclidean distances between each pair of coordinates.
dist1返回的矩阵的大小nr\times nr含有每对坐标之间的欧几里德距离。