Class: Naiso::SplitConfig
- Inherits:
-
Object
- Object
- Naiso::SplitConfig
- Defined in:
- lib/naiso/split_config.rb
Overview
분할 설정
Instance Attribute Summary collapse
-
#max_section_height ⇒ Object
Returns the value of attribute max_section_height.
-
#min_gap_height ⇒ Object
Returns the value of attribute min_gap_height.
-
#min_section_height ⇒ Object
Returns the value of attribute min_section_height.
-
#variance_threshold ⇒ Object
Returns the value of attribute variance_threshold.
Instance Method Summary collapse
-
#initialize(variance_threshold: 10.0, min_gap_height: 50, min_section_height: nil, max_section_height: nil) ⇒ SplitConfig
constructor
A new instance of SplitConfig.
Constructor Details
#initialize(variance_threshold: 10.0, min_gap_height: 50, min_section_height: nil, max_section_height: nil) ⇒ SplitConfig
Returns a new instance of SplitConfig.
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/naiso/split_config.rb', line 8 def initialize( variance_threshold: 10.0, min_gap_height: 50, min_section_height: nil, max_section_height: nil ) @variance_threshold = variance_threshold @min_gap_height = min_gap_height @min_section_height = min_section_height @max_section_height = max_section_height end |
Instance Attribute Details
#max_section_height ⇒ Object
Returns the value of attribute max_section_height.
6 7 8 |
# File 'lib/naiso/split_config.rb', line 6 def max_section_height @max_section_height end |
#min_gap_height ⇒ Object
Returns the value of attribute min_gap_height.
6 7 8 |
# File 'lib/naiso/split_config.rb', line 6 def min_gap_height @min_gap_height end |
#min_section_height ⇒ Object
Returns the value of attribute min_section_height.
6 7 8 |
# File 'lib/naiso/split_config.rb', line 6 def min_section_height @min_section_height end |
#variance_threshold ⇒ Object
Returns the value of attribute variance_threshold.
6 7 8 |
# File 'lib/naiso/split_config.rb', line 6 def variance_threshold @variance_threshold end |