standard-deviation 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d94b797ae1ce12e1f327b0e3a79c2fad5afb075
4
- data.tar.gz: 8b7f13de7c1b0bd30069ad1207534d7a3288e164
3
+ metadata.gz: 2f723c2d943ed92744f7eceaf6f93318a937ab38
4
+ data.tar.gz: 657dfc0fd951d17645c75c150169c5bf4eb4bbea
5
5
  SHA512:
6
- metadata.gz: '074861e8a8e1c2d6c19a5d4a09c49b4441861974c03331227434e1f126f710bf2b5d28b6800765b46782a35637cccee4296e64e64c6bbe85c6d57b07fd21e036'
7
- data.tar.gz: 1786e4abcc52724f13e9b832d5363aaad98cf03edb5d7baca550f6945882a5da2351c887ca0d6b126dcd22a2dc81a09fee9def28ff36af6a73541c4207445cce
6
+ metadata.gz: c945ab979b7f42840dda3815aec20721dfb0f2aa82bd6ebb583dbb7923ba899be98df6b1725dcbff856060b5d7ffa12ef0653738a0b184eea6bf5bc786a942d4
7
+ data.tar.gz: dcca6b03b04936b8d23fbf834008fa444b05cec315b5d44cd32745458429be52d043c39f0f78fbd7a68c7e6afc84e5a1d1a238485fc63372b359b549b36124ca
data/README.md CHANGED
@@ -7,7 +7,7 @@ Ruby gem to find standard deviation of given values.
7
7
  Add this line to your application's Gemfile:
8
8
 
9
9
  ```ruby
10
- gem 'standard_deviation'
10
+ gem 'standard-deviation'
11
11
  ```
12
12
 
13
13
  And then execute:
@@ -16,7 +16,7 @@ And then execute:
16
16
 
17
17
  Or install it yourself as:
18
18
 
19
- $ gem install standard_deviation
19
+ $ gem install standard-deviation
20
20
 
21
21
  ## Usage
22
22
 
@@ -16,4 +16,15 @@ module Enumerable
16
16
  def standard_deviation
17
17
  Math.sqrt(sample_variance)
18
18
  end
19
+ alias_method :std_dev, :standard_deviation
20
+
21
+ def max_standard_deviation
22
+ mean + standard_deviation
23
+ end
24
+ alias_method :max_std_dev, :max_standard_deviation
25
+
26
+ def min_standard_deviation
27
+ mean - standard_deviation
28
+ end
29
+ alias_method :min_std_dev, :min_standard_deviation
19
30
  end
@@ -1,5 +1,5 @@
1
1
  require 'enumerable/standard_deviation/standard_deviation'
2
2
 
3
3
  module StandardDeviation
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: standard-deviation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sayuj Othayoth
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-12 00:00:00.000000000 Z
11
+ date: 2016-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler