Method: Math.median

Defined in:
lib/standard/facets/math/median.rb

.median(array) ⇒ Object

Returns the numerical median for the an array of values; or nil if array is empty.



8
9
10
# File 'lib/standard/facets/math/median.rb', line 8

def self.median(array)
  percentile(array, 50)
end