• Stars
    star
    9
  • Rank 1,939,727 (Top 39 %)
  • Language
    Elixir
  • Created almost 11 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Descriptive Statistics for Elixir

Descriptive Statistics

Build Status

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.