lib/distribution/exponential.rb in distribution-0.4.0 vs lib/distribution/exponential.rb in distribution-0.5.0
- old
+ new
@@ -14,9 +14,13 @@
# Parameter +l+ is the rate parameter, the number of occurrences/unit time.
module Exponential
SHORTHAND='expo'
extend Distributable
create_distribution_methods
+ ##
+ # :singleton-method: rng(l)
+ # Returns a lambda, which generates exponential variates
+ # with +l+ as rate parameter
##
# :singleton-method: pdf(x,l)
# PDF of exponential distribution, with parameters +x+ and +l+.
# +l+ is rate parameter