dist_mat_vec: Distance matrix - vector

Description Usage Arguments Value

Description

The function dist_mat_vec compute the distance between each sample of matrix (row-wise) and a reference vector.

Usage

1
dist_mat_vec(x, ref, type = "euclidean")

Arguments

ref

The reference vector, a sample/point from a d-space.

type

The particular method to compute the distance:

  • euclidean

  • manhattan

X

A matrix with N samples from a d-space.

Value

A vector of length N with all distances


mugiro/elm documentation built on May 23, 2019, 8:21 a.m.