lib/distribution/exponential.rb in distribution-0.7.3 vs lib/distribution/exponential.rb in distribution-0.8.0

- old
+ new

@@ -1,20 +1,19 @@ require 'distribution/exponential/ruby' require 'distribution/exponential/gsl' -#require 'distribution/exponential/java' +# require 'distribution/exponential/java' - module Distribution # From Wikipedia: - # In probability theory and statistics, the exponential distribution + # In probability theory and statistics, the exponential distribution # (a.k.a. negative exponential distribution) is a family of continuous # probability distributions. It describes the time between events in a - # Poisson process, i.e. a process in which events occur continuously + # Poisson process, i.e. a process in which events occur continuously # and independently at a constant average rate. # # Parameter +l+ is the rate parameter, the number of occurrences/unit time. module Exponential - SHORTHAND='expo' + SHORTHAND = 'expo' extend Distributable create_distribution_methods ## # :singleton-method: rng(l) # Returns a lambda, which generates exponential variates