A fast distance algorithm for a matrix and a vector written in C++
fastDistV(X,Y,method)
X
a matrix
matrix
Y
a vector
vector
method
a string with possible values "euclid", "cor", "cosine"
string
a distance vector
Antoine Stevens and Leonardo Ramirez-Lopez