lib/distribution.rb in distribution-0.4.0 vs lib/distribution.rb in distribution-0.5.0

- old
+ new

@@ -17,11 +17,11 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # == Other Sources # -# * Code of Ruby engines came from statistics2.rb, +# * Code of several Ruby engines came from statistics2.rb, # created by Shin-ichiro HARA(sinara@blade.nagaokaut.ac.jp). # Retrieve from http://blade.nagaokaut.ac.jp/~sinara/ruby/math/statistics2/ # # Specific notices will be placed where there are appropiate # @@ -47,11 +47,11 @@ # Distribution::Normal.cdf(1.96) # => 0.97500210485178 # Distribution::Normal.p_value(0.95) # => 1.64485364660836 module Distribution - VERSION="0.4.0" + VERSION="0.5.0" module Shorthand EQUIVALENCES={:p_value=>:p, :cdf=>:cdf, :pdf=>:pdf, :rng=>:r, :exact_pdf=>:epdf, :exact_cdf=>:ecdf, :exact_p_value=>:ep} def self.add_shortcut(sh,m, &block) if EQUIVALENCES.include? m.to_sym @@ -145,10 +145,10 @@ autoload(:BivariateNormal, 'distribution/bivariatenormal') autoload(:Binomial, 'distribution/binomial') autoload(:Hypergeometric, 'distribution/hypergeometric') autoload(:Exponential, 'distribution/exponential') autoload(:Poisson, 'distribution/poisson') - + autoload(:Logistic, 'distribution/logistic') end