Skip to content

compute l1norm

kgryte edited this page May 12, 2015 · 1 revision

Computes the L1 norm (Manhattan/Taxicab norm) of an array of values.

var data = [ 2, 4, 2, 7, 3 ];

var norm = compute.l1norm( data );
Clone this wiki locally