IntervalHierarchyBuilder¶
IntervalHierarchyBuilder represents the recipe to construct a hierarchy from in combination with a attribute list
-
class
pyarxaas.hierarchy.interval_builder.interval_hierarchy_builder.
IntervalHierarchyBuilder
[source]¶ Represents a specific strategy for creating a value generalization hierarchy
-
add_interval
(from_n, to_n, label: str = None)[source]¶ Add a interval to the builder. from_n is inclusive, to_n is exclusive
Parameters: - from_n – create interval inclusive from this value
- to_n – create interval to this value
- label – (optional) set a string label for the interval
Returns: None
-
level
(level) → pyarxaas.hierarchy.level.Level¶ Get a level in the hierarchy
Parameters: level – int representing the level Returns: Level
-