Skip to content

compute nangmean

kgryte edited this page May 12, 2015 · 1 revision

Computes the geometric mean over an array of values ignoring any non-numeric values.

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

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