In file DVector.cpp:

DIVAMatrixExport double CDVector::Norm1() const

Calculates the one-norm (L1) of the vector.

Documentation

Calculates the one-norm (L1) of the vector. Also known as the city block metric.

L1(v) = |x_1| + |x_2| .. + |x_n|

Returns:
The L1 norm.
Author:
Mikkel B. Stegmann
Version:
2-5-2001


Back DIVA Reference Manual The DIVA-Site