calcEuclideanDistance: Calculate the euclidean distance between a numeric matrix n X...

Description Usage Arguments Value Examples

View source: R/geo-c-mean.R

Description

Calculate the euclidean distance between a numeric matrix n X p and a numeric vector of length p

Usage

1

Arguments

m

A n X p matrix or dataframe with only numeric columns

v

A numerci vector of length p

Value

A vector of length n giving the euclidean distance between all matrix row and the vector p

Examples

1
2
3
mat <- matrix(c(1,4,2,5,3,6),nrow=2,ncol=3)
v1 <- c(1,2,3)
calcEuclideanDistance(mat,v1)

jejeplusfaim/geoCmeans documentation built on Dec. 23, 2019, 7:31 p.m.