Learn R Programming

prospectr (version 0.2.8)

fastDistV: A fast distance algorithm for a matrix and a vector written in C++

Description

A fast distance algorithm for a matrix and a vector written in C++

Usage

fastDistV(X,Y,method)

Value

a distance vector

Arguments

X

a matrix

Y

a vector

method

a string with possible values "euclid", "cor", "cosine"

Author

Antoine Stevens and Leonardo Ramirez-Lopez