Module: NBayes::Result
- Defined in:
- lib/nbayes.rb
Instance Method Summary collapse
-
#max_class ⇒ Object
Return the key having the largest value.
Instance Method Details
#max_class ⇒ Object
Return the key having the largest value
352 353 354 |
# File 'lib/nbayes.rb', line 352 def max_class keys.max{ |a,b| self[a] <=> self[b] } end |