From 24fb7caab1bf2549126dd1739267abbc41d49304 Mon Sep 17 00:00:00 2001 From: Vamshi Krishna S Date: Fri, 6 Oct 2017 21:24:58 +0530 Subject: [PATCH] Letting the examples breathe --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 3b42076..4d644b7 100644 --- a/README.md +++ b/README.md @@ -13,13 +13,19 @@ A small library that does statistics for your numbers var stats = require('@pavanvamsi/math-stats'); var numbers = [1, 2, 3]; + var moreNumbers = [1, 2, 1, 3]; var mean = stats.mean(numbers); // returns 2 + var median = stats.median(numbers); // returns 2 + var modes = stats.mode(moreNumbers); // returns [1] + var standardDeviation = stats.standardDeviation(numbers); // returns 0.816496580927726 + var variance = stats.variance(numbers); // returns 0.6666666666666666 + var harmonicMean = stats.harmonicMean(numbers); // returns 1.6363636363636365 ```