ruby-enumerable-statistics

Statistics features for Enumerable

Description

Enumerable::Statistics provides some methods to calculate statistical summary in arrays and enumerables.

The following methods are supplied by this library:
 - `Array#mean`, `Enumerable#mean` - Calculates a mean of values in an array
   or an enumerable
 - `Array#variance`, `Enumerable#variance` - Calculates a variance of values
   in an array or an enumerable
 - `Array#stdev`, `Enumerable#stdev` - Calculates a standard deviation of
   values in an array or an enumerable
 - `Array#mean_variance`, `Enumerable#mean_variance` - Calculates a mean and a
   variance simultaneously
 - `Array#mean_stdev`, `Enumerable#mean_stdev` - Calculates a mean and a
   standard deviation simultaneously
 - `Array#median` - Calculates a median of values in an array
 - `Array#percentile(q)` - Calculates a percentile or percentiles of values
   in an array
 - `Array#value_counts`, `Enumerable#value_counts`, and `Hash#value_counts` -
   Count how many items for each value in the container
 - `Array#histogram` - Calculate histogram of the values in the array

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://github.com/mrkn/enumerable-statistics


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install ruby-enumerable-statistics