Learn R Programming

geocmeans (version 0.3.4)

calcEuclideanDistance: Calculate the Euclidean distance

Description

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

Usage

calcEuclideanDistance(m, v)

Value

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

Arguments

m

A n * p matrix or dataframe with only numeric columns

v

A numeric vector of length p

Examples

Run this code
#This is an internal function, no example provided

Run the code above in your browser using DataLab