myq_euclidean: Euclidean Distance

Description Usage Arguments Value Examples

View source: R/myq_euclidean.R

Description

Function to calculate euclidean distance between two vectors.

Usage

1
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

1
sim.outer(n=1e3, d=3, q.outer=myq_euclidean, point=c(1,1,1))

VarRedOpt documentation built on Dec. 8, 2020, 5:07 p.m.