Class: RMMSeg::SVWLRule
- Inherits:
-
Object
- Object
- RMMSeg::SVWLRule
- Defined in:
- lib/rmmseg/svwl_rule.rb
Overview
Smallest variance of word length rule.
Instance Method Summary collapse
Instance Method Details
#filter(chunks) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/rmmseg/svwl_rule.rb', line 6 def filter(chunks) chunks.sort { |a, b| a.variance <=> b.variance }.similar_elements { |a, b| a.variance == b.variance } end |