View source: R/Euclid_Distance.R
Euclid_Distance | R Documentation |
Euclid_Distance function
Euclid_Distance(X, v)
X |
n x m matrix |
v |
1 x m vector |
column matrix of the (Euclidean) distance between the rows of X and the vector v
X = matrix(c(17,40,20,39,30.1,55.5), nrow = 2) v = c(10.2,30,45) Euclid_Distance(X,v) # Returns the following: # [19.18984, 32.85255]'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.