MinDistFunc: Minimum distance function

Description Arguments

View source: R/MinDistFunc.r

Description

Find the row in a matrix that has minimum Euclidean distance to a given vector.

Arguments

vec

a vector whose length is the same as the length of each row in the following mat matrix

mat

a matrix in which we aim to find the row that has minimum distance to vec


hankuipeng/HKCluster documentation built on May 27, 2019, 8:45 a.m.