lib/enumerable/standard_deviation/standard_deviation.rb in standard-deviation-0.1.0 vs lib/enumerable/standard_deviation/standard_deviation.rb in standard-deviation-0.1.1
- old
+ new
@@ -14,6 +14,17 @@
end
def standard_deviation
Math.sqrt(sample_variance)
end
+ alias_method :std_dev, :standard_deviation
+
+ def max_standard_deviation
+ mean + standard_deviation
+ end
+ alias_method :max_std_dev, :max_standard_deviation
+
+ def min_standard_deviation
+ mean - standard_deviation
+ end
+ alias_method :min_std_dev, :min_standard_deviation
end