Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
MathPHP
LinearAlgebra
Vector
l2Norm
MathPHP\LinearAlgebra\Vector::l2Norm PHP Method
Vector Class Documentation
Show file
Open project: markrogoyski/math-php
l2Norm()
public
method
http://mathworld.wolfram.com/L2-Norm.html https://en.wikipedia.org/wiki/Norm_(mathematics)#Euclidean_norm ______ |x|₂ = √∑|xᵢ|²
public
l2Norm
( ) :
number
return
number
public function l2Norm() { return sqrt(array_sum(Map\Single::square($this->A))); }
Vector
__construct
__toString
add
asColumnMatrix
asRowMatrix
count
crossProduct
directProduct
dotProduct
get
getN
getVector
innerProduct
jsonSerialize
l1Norm
l2Norm
length
maxNorm
normalize
offsetExists
offsetGet
offsetSet
offsetUnset
outerProduct
pNorm
perp
perpDotProduct
perpendicular
projection
scalarDivide
scalarMultiply
subtract
sum