File: uniform.rb

package info (click to toggle)
ruby-distribution 0.8.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 624 kB
  • sloc: ruby: 4,535; makefile: 10
file content (26 lines) | stat: -rw-r--r-- 587 bytes parent folder | download
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