Skip to content

Instantly share code, notes, and snippets.

View wdiasvargas's full-sized avatar

William Dias wdiasvargas

View GitHub Profile
@wdiasvargas
wdiasvargas / arr-stat.js
Created May 13, 2016 21:22 — 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) {
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link href='https://fonts.googleapis.com/css?family=Lobster+Two:700' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Cookie:400' rel='stylesheet' type='text/css'></head>
<body>
<style>
body{