class Rudil::Throw
Public Instance Methods
above(m)
click to toggle source
# File lib/rudil/throw.rb, line 22 def above m select { |n| n > m }.size end
below(m)
click to toggle source
# File lib/rudil/throw.rb, line 30 def below m select { |n| n < m }.size end
eq_or_above(m)
click to toggle source
# File lib/rudil/throw.rb, line 26 def eq_or_above m select { |n| n >= m }.size end
eq_or_below(m)
click to toggle source
# File lib/rudil/throw.rb, line 34 def eq_or_below m select { |n| n <= m }.size end
highest()
click to toggle source
# File lib/rudil/throw.rb, line 11 def highest sort.last end
lowest()
click to toggle source
# File lib/rudil/throw.rb, line 7 def lowest sort.first end
mean()
click to toggle source
# File lib/rudil/throw.rb, line 15 def mean if size < 1 return nil end inject(0.0) { |sum, i| sum + i } / size end
to_s()
click to toggle source
# File lib/rudil/throw.rb, line 3 def to_s inspect end