jmckible / standard_deviation
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
MIT-LICENSE | ||
| |
README.rdoc | ||
| |
Rakefile | ||
| |
init.rb | ||
| |
lib/ | ||
| |
test/ |
README.rdoc
standard_deviation
Adds standard deviation methods to ActiveRecord. sqlite does not include standard deviation methods by default, so this is designed for mysql only.
Installation
./script/plugin install git://github.com/jmckible/standard_deviation.git
Usage
This plugin adds two new aggregations methods to ActiveRecord: std and variance. Say you’ve got a measurements table with an integer column called ‘integer.’
Measurement.std(:integer) # => 0.8165 Measurement.variance(:integer) # => 0.6667
Author
- standard_deviation was created by Jordan McKible jordan.mckible.com
- Available on GitHub at github.com/jmckible/standard_deviation

