categories
This module gathers structure used to define categories.
- class BoundedCategoryProfile(lower=None, upper=None)
Bases:
object
This class represents a category defined by profiles as its limits.
- Parameters
- Raises
ValueError – if upper doesn’t dominate lower
- classmethod profiles_partition(profiles, lowest=True, upmost=True)
Build a list of bounded category profiles.
- Parameters
profiles (PerformanceTable) –
lowest (bool) – if
True
add a category profile with last profile as its upper bound (and no lower bound)upmost (bool) – if
True
add a category profile with first profile as its lower bound (and no upper bound)
- Raises
ValueError – if any profile doesn’t dominate its predecessor
- Returns
list of bounded category profiles in ascending domination order
- Return type
List[BoundedCategoryProfile]