Skip to content

compute mstdev

kgryte edited this page May 12, 2015 · 1 revision

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

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

var arr = compute.mstdev( data, 3 );
// returns [ ~2.6, 5, ~5.3 ]
Clone this wiki locally