append_corner_features#
- tangles.convenience.convenience_features.append_corner_features(feature_system: SetSeparationSystemBase, feature_ids: range | list | ndarray | None = None, min_side_size: float = 0, min_side_size_is_fraction: bool = False, order_func: Callable[[ndarray], ndarray] = None, max_order_factor: float = 1.0, global_max_order: float = inf) range #
Compute corners and add them to a FeatureSystem or SetSeparationSystem
Parameters#
- feature_systemSetSeparationSystemBase, FeatureSystem, AdvancedFeatureSystem or SetSeparationSystem
A feature system or separation system
- feature_idslist, np.ndarray, range or None
a selection of a subset of feature_system
- min_size_fractionfloat
Discard corners with minimum size smaller than min_size_fraction * dataset_size. This parameter can be used to control the balance.
- order_funcSetSeparationOrderFunction or None
an order function
- max_order_factor: float
Discard corners of two features with an order greater than max_order_factor times the greater order of the two features.
- global_max_order: float
Discard corners that have an order greater than this value
Returns#
- range:
the id range of the added features