View source: R/helpers_function.R
linalg_norm | R Documentation |
Linear Algebra for Euclidean distance
linalg_norm(inputA, inputB)
inputA |
First input vector |
inputB |
Second input vector. Must be of the same dimension as inputA. |
Returns the calculation results by squares of distances between two input values
a <- c(-3,-2,-1,3,3,2,3) b <- c(-3,-2,-1,0,1,2,3) linalg_norm(a,b) # = 3.605
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.