myq_euclidean {VarRedOpt} | R Documentation |
Euclidean Distance
Description
Function to calculate euclidean distance between two vectors.
Usage
myq_euclidean(zm, point = c(1, 2, 1))
Arguments
zm |
Input matrix of set of vectors. |
point |
Coordinates of the point to calculate distance to the input. |
Value
Sum of the euclidean distance from point to set of vectors.
Examples
sim.outer(n=1e3, d=3, q.outer=myq_euclidean, point=c(1,1,1))
[Package VarRedOpt version 0.1.0 Index]