Method: Utilities::Statistics#modes

Defined in:
lib/utilities/utilities.rb

#modesObject

Return a hash of modes with their corresponding occurences



118
119
120
121
122
# File 'lib/utilities/utilities.rb', line 118

def modes
  fre = frequences
  max = fre.values.max
  fre.select{ |k, f| f == max }
end