Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Fully qualified name: Std.Math.PNorm
function PNorm(p : Double, array : Double[]) : Double
Summary
Returns the L(p)
norm of a vector of Double
s.
That is, given an array x of type Double[]
, this returns the p-norm
|x̄|ₚ= (∑(xᵢ)ᵖ)¹ᐟᵖ.
Input
p
The exponent p in the p-norm.
Output
The p-norm |x̄|ₚ.