Method: IntervalNotation::SweepLine.make_segmentation
- Defined in:
- lib/interval_notation/sweep_line/sweep_line.rb
.make_segmentation(indexed_interval_sets, initial_state) ⇒ Object
Make segmentation by state of a list of interval sets. Accepts a list of pairs (interval, tag)
24 25 26 27 28 29 |
# File 'lib/interval_notation/sweep_line/sweep_line.rb', line 24 def self.make_segmentation(indexed_interval_sets, initial_state) points = interval_boundaries(indexed_interval_sets) segmentation_by_boundary_points(points, initial_state).map_state{|segment| segment.state.state_convolution } end |