Skip to content

compute nanmean

kgryte edited this page May 12, 2015 · 1 revision

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

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

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