Class/Module Index [+]

Quicksearch

Statsample::Util

Public Instance Methods

normal_order_statistic_medians(i,n) click to toggle source

Reference: www.itl.nist.gov/div898/handbook/eda/section3/normprpl.htm

# File lib/statsample.rb, line 252
def normal_order_statistic_medians(i,n)
  if i==1
    u= 1.0 - normal_order_statistic_medians(n,n)
  elsif i==n
    u=0.5**(1 / n.to_f)
  else
    u= (i - 0.3175) / (n + 0.365)
  end
  u
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.