Skip to content

compute nanvariance

kgryte edited this page May 12, 2015 · 1 revision

Computes the sample variance over an array of values ignoring any non-numeric values.

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

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