lib/easystats.rb in easystats-0.0.6 vs lib/easystats.rb in easystats-0.0.7

- old
+ new

@@ -1,6 +1,7 @@ class Array + # take in an array of numbers and calculate the sum def sum data = self sum_of_numbers = 0 @@ -25,9 +26,10 @@ self.sum / data.count.to_f else 0 end end + alias_method :average, :mean # this is an internat function (technically the developer can use it but should have no need) # this function returns the sum of each squared difference of mean def sum_of_deviations_squared data = self