README in easystats-0.0.2 vs README in easystats-0.0.3
- old
+ new
@@ -17,10 +17,22 @@
median(x)
Paramaters: Takes in an array of numbers
Returns: The median of the numbers in the array
+range(x)
+Parameters: Takes in an array of numbers
+Returns: The range of the numbers
+
+mode(x)
+Parameters: Takes in an array of numbers
+Returns: The mode, if any. Otherwise a string that says "There is no mode"
+
+variance(x)
+Paramaters: Takes in an array of numbers
+Returns: The variance
+
Example usage:
require "rubygems"
require "easystats"
@@ -31,7 +43,10 @@
# Create a new Easystats Object
m = Easystats.new
puts "Sum: " + m.sum(myNumbers).to_s
puts "Average: " + m.mean(myNumbers).to_s
+puts "Variance: " + m.variance(myNumbers).to_s
puts "Standard Deviation: " + m.standard_deviation(myNumbers).to_s
puts "Median: " + m.median(myNumbers).to_s
+puts "Range: " + m.range(myNumbers).to_s
+puts "Mode: " + m.mode(myNumbers).to_s