Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pusewicz/descriptive_statistics

Descriptive Statistics for Elixir
https://github.com/pusewicz/descriptive_statistics

descriptive-statistics elixir erlang statistics

Last synced: 23 days ago
JSON representation

Descriptive Statistics for Elixir

Awesome Lists containing this project

README

        

# Descriptive Statistics

[![Build Status](https://travis-ci.org/pusewicz/descriptive_statistics.png?branch=master)](https://travis-ci.org/pusewicz/descriptive_statistics)

Descriptive Statistics is a library that allows you to compute simple descriptive statistics in Elixir. Inspired by https://github.com/thirtysixthspan/descriptive_statistics.

## Examples

```
$ iex -r lib/descriptive_statistics.ex

iex(1)> DescriptiveStatistics.sum [1,2,3]
6
iex(2)> DescriptiveStatistics.sum [2, 6, 9, 3, 5, 1, 8, 3, 6, 9, 2]
54
iex(3)> DescriptiveStatistics.mean [2, 6, 9, 3, 5, 1, 8, 3, 6, 9, 2]
4.909090909090909
iex(4)> DescriptiveStatistics.median [2, 6, 9, 3, 5, 1, 8, 3, 6, 9, 2]
5
```

## Author

Brought to you by [Piotr Usewicz](http://www.layer22.com).