lib/distribution.rb in statsample-0.11.2 vs lib/distribution.rb in statsample-0.12.0
- old
+ new
@@ -1,5 +1,9 @@
-require 'statistics2'
+begin
+ require 'statistics2'
+rescue LoadError
+ puts "You should install statistics2"
+end
# Several distributions modules to calculate cdf, inverse cdf and pdf
# See Distribution::Pdf for interface.
#
# Usage:
# Distribution::Normal.cdf(1.96)