Skip to content

compute nanhmean

kgryte edited this page May 12, 2015 · 1 revision

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

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

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