https://stackoverflow.com/a/53577159
const n = array.length; const mean = array.reduce((a,b) => a+b)/n; const s = Math.sqrt(array.map(x => Math.pow(x-mean,2)).reduce((a,b) => a+b)/n);
355100cookie-checkStandard deviation
https://stackoverflow.com/a/53577159
const n = array.length; const mean = array.reduce((a,b) => a+b)/n; const s = Math.sqrt(array.map(x => Math.pow(x-mean,2)).reduce((a,b) => a+b)/n);