Skip to content

compute mean

kgryte edited this page May 12, 2015 · 1 revision

Computes the arithmetic mean of a numeric array.

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

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