1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
require 'distribution/uniform/ruby'
require 'distribution/uniform/gsl'
#require 'distribution/uniform/java'
module Distribution
# Expresses the uniformly spread probability over a finite interval
module Uniform
SHORTHAND='unif'
extend Distributable
create_distribution_methods
##
# :singleton-method: pdf(x, lower, upper)
# Returns the uniform PDF
##
# :singleton-method: cdf(x, lower, upper)
# Returns the uniform CDF
##
# :singleton-method: quantile(qn, lower, upper)
# Returns the uniform inverse CDF or P-value
end
end
|