Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/pusewicz/descriptive_statistics
- Owner: pusewicz
- Created: 2013-12-13T15:58:39.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2023-05-12T07:26:14.000Z (over 1 year ago)
- Last Synced: 2024-09-30T03:42:15.506Z (about 1 month ago)
- Topics: descriptive-statistics, elixir, erlang, statistics
- Language: Elixir
- Homepage:
- Size: 15.6 KB
- Stars: 9
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - Descriptive Statistics for Elixir. (Statistics)
- fucking-awesome-elixir - descriptive_statistics - Descriptive Statistics for Elixir. (Statistics)
- awesome-elixir - descriptive_statistics - Descriptive Statistics for Elixir. (Statistics)
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.exiex(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).