Click or drag to resize

VectorMathLpNorm(IReadOnlyListSingle, Double) Method

Compute the p Norm of this vector.

Namespace: Altaxo.Calc.LinearAlgebra
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static double LpNorm(
	this IReadOnlyList<float> vector,
	double p
)

Parameters

vector  IReadOnlyListSingle
The vector.
p  Double
Order of the norm.

Return Value

Double
The p norm of the vector.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IReadOnlyListSingle. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
p > 0, if p < 0, ABS(p) is used. If p = 0 or positive infinity, the infinity norm is returned.
See Also