Skip to content

compute mvariance

kgryte edited this page May 12, 2015 · 1 revision

Computes a moving (sliding window) sample variance over a numeric array.

var data = [ 1, 5, 0, 10, 2 ];

var arr = compute.mvariance( data, 3 );
// returns [ 7, 25, 28 ]
Clone this wiki locally