lib/rubystats/probability_distribution.rb
#check that variable is between lo and hi limits. 
#lo default is 0.0 and hi default is 1.0
check that variable is between lo and hi limits.
check that variable is between lo and hi limits .
def check_range(x, lo=0.0, hi=1.0)
      raise ArgumentError.new("x cannot be nil") if x.nil?
      if x < lo or x > hi
        raise ArgumentError.new("x must be less than lo (#{lo}) and greater than hi (#{hi})") 
      end
    end
def check_range ( x , lo = 0.0 , hi = 1.0 ) raise ArgumentError . new ( "x cannot be nil" ) if x . nil? if x < lo or x > hi raise ArgumentError . new ( "x must be less than lo (#{lo}) and greater than hi (#{hi})" ) end end
check that variable is between lo and hi limits.
check that variable is between lo and hi limits .
x
<not_specific>
lo
<not_specific>
hi
<not_specific>