Skip to content

Instantly share code, notes, and snippets.

View softpunch's full-sized avatar

Ryan softpunch

View GitHub Profile
@softpunch
softpunch / arr-stat.js
Created April 28, 2017 07:08 — forked from Daniel-Hug/arr-stat.js
JavaScript statistical functions for arrays: max, min, range, midrange, sum, mean / average, median, modes, variance, standard deviation, mean absolute deviation, z scores
var arr = {
max: function(array) {
return Math.max.apply(null, array);
},
min: function(array) {
return Math.min.apply(null, array);
},
range: function(array) {