https://github.com/sixarm/sixarm_ruby_math_statistics
SixArm.com » Ruby » math statistics for mean, median, mode, variance, deviation, etc.
https://github.com/sixarm/sixarm_ruby_math_statistics
gem math ruby statistics
Last synced: 11 months ago
JSON representation
SixArm.com » Ruby » math statistics for mean, median, mode, variance, deviation, etc.
- Host: GitHub
- URL: https://github.com/sixarm/sixarm_ruby_math_statistics
- Owner: SixArm
- License: other
- Created: 2010-10-18T02:16:12.000Z (over 15 years ago)
- Default Branch: main
- Last Pushed: 2025-04-14T09:20:14.000Z (about 1 year ago)
- Last Synced: 2025-04-14T10:30:12.273Z (about 1 year ago)
- Topics: gem, math, ruby, statistics
- Language: Ruby
- Homepage: http://sixarm.com
- Size: 409 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
- Citation: CITATION.cff
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# SixArm.com → Ruby →
Math Statistics
[](http://badge.fury.io/rb/sixarm_ruby_math_statistics)
[](https://travis-ci.org/SixArm/sixarm_ruby_math_statistics)
[](https://codeclimate.com/github/SixArm/sixarm_ruby_math_statistics/maintainability)
* Git:
* Doc:
* Gem:
* Contact: Joel Parker Henderson,
* Project: [changes](CHANGES.md), [license](LICENSE.md), [contributing](CONTRIBUTING.md).
## Introduction
Math statistics methods: sum, mean, median, variance, deviation.
See http://pallas.telperion.info/ruby-stats/
For docs go to
Want to help? We're happy to get pull requests.
## Install
### Gem
To install this gem in your shell or terminal:
gem install sixarm_ruby_math_statistics
### Gemfile
To add this gem to your Gemfile:
gem 'sixarm_ruby_math_statistics'
### Require
To require the gem in your code:
require 'sixarm_ruby_math_statistics'
## Examples
require "sixarm_ruby_math_statistics"
[2, 4, 8].sum => 14
[2, 4, 8].mean => 4.666
[2, 4, 8].median => 4.0
[2, 4, 8].variance => 6.222
[2, 4, 8].deviation => 2.494