System.Math.Norm

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function Norm(const Data: array of Single): Single;
function Norm(const Data: array of Double): Double;
function Norm(const Data: array of Extended): Extended;

C++

extern DELPHI_PACKAGE float __fastcall Norm(float const *Data, const int Data_High)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.Math.pas
System.Math.hpp
System.Math System.Math

Description

Returns the Euclidean 'L-2' norm.

Norm returns the Euclidean 'L-2' norm for the values in the Data array. The 'L-2' norm is the square root of the sum of squares.

Note: In C++, Data is an array of values, and Data_Size is the index of the last value in the array (one less than the number of values).

See Also