easystats 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -19,7 +19,7 @@ range
19
19
  Returns: The range of the numbers
20
20
 
21
21
  mode
22
- Returns: The mode, if any. Otherwise a string that says "There is no mode"
22
+ Returns: The mode. If there is no mode returns 0.
23
23
 
24
24
  variance
25
25
  Returns: The variance
@@ -1,3 +1,3 @@
1
1
  module Easystats
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
data/lib/easystats.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  class Array
2
+
2
3
  # take in an array of numbers and calculate the sum
3
4
  def sum
4
5
  data = self
@@ -27,6 +28,7 @@
27
28
  0
28
29
  end
29
30
  end
31
+ alias_method :average, :mean
30
32
 
31
33
  # this is an internat function (technically the developer can use it but should have no need)
32
34
  # this function returns the sum of each squared difference of mean
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 6
9
- version: 0.0.6
8
+ - 7
9
+ version: 0.0.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - Matthew Grigajtis
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-01-28 00:00:00 -05:00
17
+ date: 2011-01-29 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies: []
20
20