RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Math.Norm Function

Returns the Euclidean 'L-2' norm.

Pascal
function Norm(const Data: array of Double): Extended;
C++
Extended Norm(const array of Double Data);

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).
 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!