Skip to content

compute lpnorm

kgryte edited this page May 12, 2015 · 1 revision

Computes the Lp norm of an array of values.

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

// Compute the L5 norm:
var norm = compute.lpnorm( data, 5 );
Clone this wiki locally