linalg_norm: Linear Algebra for Euclidean distance

View source: R/helpers_function.R

linalg_normR Documentation

Linear Algebra for Euclidean distance

Description

Linear Algebra for Euclidean distance

Usage

linalg_norm(inputA, inputB)

Arguments

inputA

First input vector

inputB

Second input vector. Must be of the same dimension as inputA.

Value

Returns the calculation results by squares of distances between two input values

Examples

a <- c(-3,-2,-1,3,3,2,3)
b <- c(-3,-2,-1,0,1,2,3)
linalg_norm(a,b) # = 3.605

fakmct documentation built on June 23, 2022, 1:06 a.m.