mvdistance: mvdistance

Description Usage Arguments Value

View source: R/mvTargetOpt.R

Description

internal function, computes the Euclidean (euclid=T) or Manhattan distances (euclid=F) between vector y and the rows of matrix xs.

Usage

1
mvdistance(xs, y, euclid = F)

Arguments

xs

matrix, each row representing a vector

y

vector

euclid

TRUE for Euclidean distance, otherwise MAnhattan distance

Value

vector of the distances


amaendle/mvTargetOpt documentation built on June 12, 2020, 5:57 p.m.